From: uz Date: Tue, 2 Aug 2011 15:00:33 +0000 (+0000) Subject: Fixed another memory leak. X-Git-Tag: V2.13.3~355 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7d691358963c2151202616c3190867e9e99bf159;p=cc65 Fixed another memory leak. git-svn-id: svn://svn.cc65.org/cc65/trunk@5107 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ld65/objdata.c b/src/ld65/objdata.c index fe6850513..694940bd6 100644 --- a/src/ld65/objdata.c +++ b/src/ld65/objdata.c @@ -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)); }