[Fix] Fixed mem leak.
This commit is contained in:
parent
d04acc1a35
commit
0dd49b7f5b
@ -15,7 +15,7 @@ export OS
|
||||
# VERSION.
|
||||
VMAJOR := 0
|
||||
VMINOR := 3
|
||||
VREV := 1
|
||||
VREV := 2
|
||||
VERSION = -DVMAJOR=$(VMAJOR) -DVMINOR=$(VMINOR) -DVREV=$(VREV)
|
||||
VERSIONFILE = VERSION
|
||||
|
||||
|
@ -173,8 +173,14 @@ int diff_apply(char* name) {
|
||||
/* Check to see if it's the diff we're looking for. */
|
||||
xmlr_attr(node, "name", diffname);
|
||||
if(strcmp(diffname, name)==0) {
|
||||
/* Apply it. */
|
||||
diff_patch(node);
|
||||
|
||||
/* Clean up. */
|
||||
free(diffname);
|
||||
xmlFreeDoc(doc);
|
||||
free(buf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
free(diffname);
|
||||
|
Loading…
Reference in New Issue
Block a user