Removed several memory leaks.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5595 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -75,6 +75,9 @@ struct Attr {
|
||||
Attr* NewAttr (const char* Name, const char* Value);
|
||||
/* Create a new attribute */
|
||||
|
||||
void FreeAttr (Attr* A);
|
||||
/* Free an attribute structure */
|
||||
|
||||
void DumpAttrColl (const Collection* C);
|
||||
/* Dump a collection of attribute/value pairs for debugging */
|
||||
|
||||
@@ -92,7 +95,7 @@ const Attr* GetAttr (const Collection* C, const char* Name);
|
||||
|
||||
const Attr* NeedAttr (const Collection* C, const char* Name, const char* Op);
|
||||
/* Search for an attribute with the given name and return it. If the attribute
|
||||
* is not found, the function terminates with an error using Op as additional
|
||||
* is not found, the function terminates with an error using Op as additional
|
||||
* context in the error message.
|
||||
*/
|
||||
|
||||
@@ -123,6 +126,9 @@ Collection* ParseAttrList (const char* List, const char** NameList, unsigned Nam
|
||||
* containing Attr entries.
|
||||
*/
|
||||
|
||||
void FreeAttrList (Collection* C);
|
||||
/* Free a list of attributes */
|
||||
|
||||
|
||||
|
||||
/* End of attr.h */
|
||||
|
||||
Reference in New Issue
Block a user