CodeQL MemoryMayNotBeFreed.ql calma/**
Looks straight forward lost pointer to recently malloced block
This commit is contained in:
parent
99c448407c
commit
7508a9e6b7
|
|
@ -1090,6 +1090,7 @@ calmaProcessDef(
|
|||
" Using magic's internal definition\n");
|
||||
isReadOnly = FALSE;
|
||||
}
|
||||
freeMagic(buffer);
|
||||
|
||||
if (cellend < cellstart) /* Sanity check */
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1043,6 +1043,7 @@ calmaProcessDefZ(
|
|||
" Using magic's internal definition\n");
|
||||
isReadOnly = FALSE;
|
||||
}
|
||||
freeMagic(buffer);
|
||||
|
||||
if (cellend < cellstart) /* Sanity check */
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue