Author: spetreolle
Date: Thu Jan 16 18:36:32 2014
New Revision: 61647
URL:
http://svn.reactos.org/svn/reactos?rev=61647&view=rev
Log:
[CDMAKE]
dir_hash_add_file: don't leak targetdir (14000 bytes saved per run)
Modified:
trunk/reactos/tools/cdmake/dirhash.c
Modified: trunk/reactos/tools/cdmake/dirhash.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cdmake/dirhash.c?rev…
==============================================================================
--- trunk/reactos/tools/cdmake/dirhash.c [iso-8859-1] (original)
+++ trunk/reactos/tools/cdmake/dirhash.c [iso-8859-1] Thu Jan 16 18:36:32 2014
@@ -152,6 +152,7 @@
normalize_dirname(targetnorm);
de = dir_hash_create_dir(dh, targetdir, targetnorm);
free(targetnorm);
+ free(targetdir);
tf = calloc(1, sizeof(*tf));
tf->next = de->head;
de->head = tf;