Fixed a rather large memory leak.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5102 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-01 20:49:59 +00:00
parent edca940a86
commit 67692e51f1
3 changed files with 45 additions and 4 deletions

View File

@@ -97,11 +97,16 @@ struct LineInfo {
LineInfo* GenLineInfo (const FilePos* Pos);
/* Generate a new (internally used) line info with the given information */
/* Generate a new (internally used) line info with the given information */
LineInfo* ReadLineInfo (FILE* F, struct ObjData* O);
/* Read a line info from a file and return it */
void FreeLineInfo (LineInfo* LI);
/* Free a LineInfo structure. This function will not handle a non empty
* Fragments collection, it can only be used to free incomplete line infos.
*/
void ReadLineInfoList (FILE* F, struct ObjData* O, Collection* LineInfos);
/* Read a list of line infos stored as a list of indices in the object file,
* make real line infos from them and place them into the passed collection.