diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-18 17:41:22 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-22 14:29:52 +0300 |
commit | 4499ce3b223410d010380efa0bbbcb1c00722006 (patch) | |
tree | 987d8d3b8f5c846b30b8724b1639d0c92398d376 /tests/fs-tests | |
parent | e5047f54b8f160c829da31f91a0bf459219b8c0e (diff) |
fs-tests: integck: remove symlinks memory leaks
When we create a symlink we also allocate a symlink_info structure
and the target path name. But when we remove a symlink - we do not
delete that memory. This patch fixes the issue.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/fs-tests')
-rw-r--r-- | tests/fs-tests/integrity/integck.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c index 96937ff..94ffeb8 100644 --- a/tests/fs-tests/integrity/integck.c +++ b/tests/fs-tests/integrity/integck.c @@ -1898,6 +1898,8 @@ static int symlink_remove(struct symlink_info *symlink) } remove_dir_entry(symlink->entry); + free(symlink->target_pathname); + free(symlink); free(path); return 0; } |