1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-29 10:29:30 +00:00

Fixed another memory leak.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5107 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2011-08-02 15:00:33 +00:00
parent c25694f54d
commit 7d69135896

View File

@ -103,7 +103,8 @@ void FreeObjData (ObjData* O)
{
unsigned I;
/* Unused ObjData do only have the string pool, Exports and Imports. */
DoneCollection (&O->Files);
DoneCollection (&O->Sections);
for (I = 0; I < CollCount (&O->Exports); ++I) {
FreeExport (CollAtUnchecked (&O->Exports, I));
}
@ -113,6 +114,7 @@ void FreeObjData (ObjData* O)
}
DoneCollection (&O->Imports);
DoneCollection (&O->DbgSyms);
for (I = 0; I < CollCount (&O->LineInfos); ++I) {
FreeLineInfo (CollAtUnchecked (&O->LineInfos, I));
}