From 7d691358963c2151202616c3190867e9e99bf159 Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 2 Aug 2011 15:00:33 +0000 Subject: [PATCH] Fixed another memory leak. git-svn-id: svn://svn.cc65.org/cc65/trunk@5107 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ld65/objdata.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } -- 2.39.5