mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[CDMAKE]
Fix memory leak in dir_hash_add_file(). The duplicated targetnorm used for calling dir_hash_create_dir is never affected anywhere. It is duplicated again before affectation. And thus, leaks. svn path=/trunk/; revision=59581
This commit is contained in:
@@ -139,6 +139,7 @@ void dir_hash_add_file(struct target_dir_hash *dh, const char *source, const cha
|
||||
targetnorm = strdup(targetdir);
|
||||
normalize_dirname(targetnorm);
|
||||
de = dir_hash_create_dir(dh, targetdir, targetnorm);
|
||||
free(targetnorm);
|
||||
tf = calloc(1, sizeof(*tf));
|
||||
tf->next = de->head;
|
||||
de->head = tf;
|
||||
|
||||
Reference in New Issue
Block a user