Removed several memory leaks.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5595 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-03-10 21:46:09 +00:00
parent 4c36a39814
commit 84d90343ea
5 changed files with 45 additions and 7 deletions

View File

@@ -156,7 +156,7 @@ static void OptConvertTo (const char* Opt attribute ((unused)), const char* Arg)
SetOutputData (ConvertTo (C, A));
/* Delete the attribute list */
FreeCollection (A);
FreeAttrList (A);
}
@@ -217,7 +217,7 @@ static void OptRead (const char* Opt attribute ((unused)), const char* Arg)
B = C = ReadInputFile (A);
/* Delete the attribute list */
FreeCollection (A);
FreeAttrList (A);
}
@@ -286,7 +286,7 @@ static void OptWrite (const char* Opt attribute ((unused)), const char* Arg)
WriteOutputFile (D, A);
/* Delete the attribute list */
FreeCollection (A);
FreeAttrList (A);
}