summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-02-12 11:16:19 -0800
committerChih-Hung Hsieh <chh@google.com>2016-02-12 11:38:21 -0800
commitdf834a944bbb31746dfa7912f973547208add31d (patch)
treedef93180cae1f8b4e5f2d0f0d44504a8ca686030
parentec255673dc853bcf9a829ea0f476d4fd2f1d4a67 (diff)
downloadextras-df834a944bbb31746dfa7912f973547208add31d.tar.gz
Fix memory leak of dirbuf.
BUG: 26962062 Change-Id: I5fae9eed5b154205a6780fb28c59fccf0b5b16ec
-rw-r--r--ext4_utils/ext4fixup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext4_utils/ext4fixup.c b/ext4_utils/ext4fixup.c
index 184cd0d6..4b402072 100644
--- a/ext4_utils/ext4fixup.c
+++ b/ext4_utils/ext4fixup.c
@@ -806,6 +806,7 @@ int ext4fixup_internal(char *fsdev, int v_flag, int n_flag,
}
close(fd);
+ free(dirbuf);
return 0;
}