diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-18 15:53:06 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-22 14:29:52 +0300 |
commit | 5815fd7b82e096abdb97dcec3f6b015427bcb251 (patch) | |
tree | 8a359e3beea4d06aef4d802f01eafad4b03e1716 /tests/fs-tests | |
parent | de681344725362da171fa30a83a8a075781b0157 (diff) |
fs-tests: integck: fix memory leak in dir_new
Do not initialize dir->name because add_dir_entry already does
this for us, so we leak the memory.
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, 0 insertions, 1 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c index d2db320..666bc70 100644 --- a/tests/fs-tests/integrity/integck.c +++ b/tests/fs-tests/integrity/integck.c @@ -473,7 +473,6 @@ static int dir_new(struct dir_info *parent, const char *name) free(path); dir = zalloc(sizeof(struct dir_info)); - dir->name = dup_string(name); dir->parent = parent; if (parent) add_dir_entry(parent, 'd', name, dir); |