mirror of
https://github.com/nasa/trick.git
synced 2025-01-31 08:25:41 +00:00
handle memory leak on early exit parseLogHeader.cpp
This commit is contained in:
parent
d1957c650b
commit
072e1855dd
@ -63,6 +63,7 @@ int LogGroup::parseLogHeaders()
|
|||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\nERROR:\nCouldn't open file \"%s\" \n",
|
"\nERROR:\nCouldn't open file \"%s\" \n",
|
||||||
headerName);
|
headerName);
|
||||||
|
delete[] strs;
|
||||||
delete[] headerName;
|
delete[] headerName;
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user