summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-02-12 11:16:19 -0800
committerMichael Bestas <mikeioannina@gmail.com>2017-01-02 01:30:03 +0200
commit55185935c46ef04d9445f831f58e314b77fdb66f (patch)
tree875780052e3cb4dcf9b27722137cf6b0b329bfb8
parente8b756b16bc842254bf9fa130c0eaf32ae8d952c (diff)
downloadandroid_system_extras-55185935c46ef04d9445f831f58e314b77fdb66f.tar.gz
android_system_extras-55185935c46ef04d9445f831f58e314b77fdb66f.tar.bz2
android_system_extras-55185935c46ef04d9445f831f58e314b77fdb66f.zip
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;
}