diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-06-15 03:50:07 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-06-15 03:54:06 -0400 |
commit | 23f75f6efaac6b756e0f3e4e1d33b6798347f66a (patch) | |
tree | 76103ef6d5b1798e6e0622f74618561ad658a2ba /e2fsck/dirinfo.c | |
parent | 7b59b4a8ee4a65ef14eb364cde574d34ec8c014f (diff) | |
download | e2fsprogs-23f75f6efaac6b756e0f3e4e1d33b6798347f66a.tar.gz |
e2fsck: fix miscellaneous memory leaks
Fix various miscellaneous memory leaks which were discovered using valgrind.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/dirinfo.c')
-rw-r--r-- | e2fsck/dirinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/e2fsck/dirinfo.c b/e2fsck/dirinfo.c index fb2887be..901235c7 100644 --- a/e2fsck/dirinfo.c +++ b/e2fsck/dirinfo.c @@ -293,6 +293,9 @@ void e2fsck_free_dir_info(e2fsck_t ctx) unlink(ctx->dir_info->tdb_fn); free(ctx->dir_info->tdb_fn); } + if (ctx->dir_info->array) + ext2fs_free_mem(&ctx->dir_info->array); + ctx->dir_info->array = 0; ctx->dir_info->size = 0; ctx->dir_info->count = 0; ext2fs_free_mem(&ctx->dir_info); |