CodeQL MemoryMayNotBeFreed.ql calma/**

Looks straight forward lost pointer to recently malloced block
This commit is contained in:
Darryl L. Miles 2025-02-13 08:26:18 +00:00 committed by Tim Edwards
parent 99c448407c
commit 7508a9e6b7
2 changed files with 2 additions and 0 deletions

View File

@ -1090,6 +1090,7 @@ calmaProcessDef(
" Using magic's internal definition\n");
isReadOnly = FALSE;
}
freeMagic(buffer);
if (cellend < cellstart) /* Sanity check */
{

View File

@ -1043,6 +1043,7 @@ calmaProcessDefZ(
" Using magic's internal definition\n");
isReadOnly = FALSE;
}
freeMagic(buffer);
if (cellend < cellstart) /* Sanity check */
{