aboutsummaryrefslogtreecommitdiffstats
path: root/e2fsck/dx_dirinfo.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-06-15 03:50:07 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-06-15 03:54:06 -0400
commit23f75f6efaac6b756e0f3e4e1d33b6798347f66a (patch)
tree76103ef6d5b1798e6e0622f74618561ad658a2ba /e2fsck/dx_dirinfo.c
parent7b59b4a8ee4a65ef14eb364cde574d34ec8c014f (diff)
downloade2fsprogs-23f75f6efaac6b756e0f3e4e1d33b6798347f66a.tar.gz
e2fsprogs-23f75f6efaac6b756e0f3e4e1d33b6798347f66a.tar.xz
e2fsprogs-23f75f6efaac6b756e0f3e4e1d33b6798347f66a.zip
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/dx_dirinfo.c')
-rw-r--r--e2fsck/dx_dirinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsck/dx_dirinfo.c b/e2fsck/dx_dirinfo.c
index eba6adda..5c48d328 100644
--- a/e2fsck/dx_dirinfo.c
+++ b/e2fsck/dx_dirinfo.c
@@ -115,7 +115,7 @@ void e2fsck_free_dx_dir_info(e2fsck_t ctx)
if (ctx->dx_dir_info) {
dir = ctx->dx_dir_info;
- for (i=0; i < ctx->dx_dir_info_count; i++) {
+ for (i=0; i < ctx->dx_dir_info_count; i++,dir++) {
if (dir->dx_block) {
ext2fs_free_mem(&dir->dx_block);
dir->dx_block = 0;