diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-18 15:50:22 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-22 14:29:52 +0300 |
commit | de681344725362da171fa30a83a8a075781b0157 (patch) | |
tree | 2bb65b27474799a8e2b169c7b094c93d0ac204ea /tests/fs-tests | |
parent | 211061b60feaa70c269a9c566e94b554ba781fc5 (diff) |
fs-tests: integck: fix memory lead in dir_remove
When removing a directory and freeing corresponding 'dir_info' object -
do not forget to free directory name as well.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/fs-tests')
-rw-r--r-- | tests/fs-tests/integrity/integck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c index 79c1020..d2db320 100644 --- a/tests/fs-tests/integrity/integck.c +++ b/tests/fs-tests/integrity/integck.c @@ -517,6 +517,7 @@ static int dir_remove(struct dir_info *dir) /* Remove entry from parent directory */ remove_dir_entry(dir->entry); free(path); + free(dir->name); free(dir); return 0; } |