mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
CodeQL MemoryMayNotBeFreed.ql calma/**
Looks straight forward lost pointer to recently malloced block
This commit is contained in:
committed by
Tim Edwards
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 */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user