CodeQL MemoryMayNotBeFreed.ql calma/**

Looks straight forward lost pointer to recently malloced block
This commit is contained in:
Darryl L. Miles
2025-02-22 21:35:23 -05:00
committed by Tim Edwards
parent 99c448407c
commit 7508a9e6b7
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1090,6 +1090,7 @@ calmaProcessDef(
" Using magic's internal definition\n");
isReadOnly = FALSE;
}
freeMagic(buffer);
if (cellend < cellstart) /* Sanity check */
{
+1
View File
@@ -1043,6 +1043,7 @@ calmaProcessDefZ(
" Using magic's internal definition\n");
isReadOnly = FALSE;
}
freeMagic(buffer);
if (cellend < cellstart) /* Sanity check */
{