mirror of
https://github.com/cc65/cc65.git
synced 2025-01-13 09:31:53 +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:
parent
c25694f54d
commit
7d69135896
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user