summaryrefslogtreecommitdiffstats
path: root/cpio
diff options
context:
space:
mode:
authorElliott Hughes2013-10-29 16:12:46 -0500
committerElliott Hughes2013-10-29 16:12:46 -0500
commit14e28d39f7f094225c1ddae8fa43bd792c621a8f (patch)
treef4d986698864a59ea87af253247753768916be37 /cpio
parent98f87d92d89079f274374409efcf57ca52b13c1f (diff)
downloadplatform-system-core-14e28d39f7f094225c1ddae8fa43bd792c621a8f.tar.gz
platform-system-core-14e28d39f7f094225c1ddae8fa43bd792c621a8f.tar.xz
platform-system-core-14e28d39f7f094225c1ddae8fa43bd792c621a8f.zip
Fix a bunch of small system/core bugs.
Missing frees in: adb/file_sync_client.c fastboot/fastboot.c libsparse/output_file.c Missing closedirs in: adb/file_sync_service.c cpio/mkbootfs.c libcutils/dir_hash.c Potential buffer overrun in: gpttool/gpttool.c Incorrect NULL check in: libsparse/backed_block.c Bug: https://code.google.com/p/android/issues/detail?id=61564 Change-Id: If97838a9e73a77aef7f416c31c237ce1fca4ce21
Diffstat (limited to 'cpio')
-rw-r--r--cpio/mkbootfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpio/mkbootfs.c b/cpio/mkbootfs.c
index 3569e27f4..7d3740c0f 100644
--- a/cpio/mkbootfs.c
+++ b/cpio/mkbootfs.c
@@ -220,6 +220,8 @@ static void _archive_dir(char *in, char *out, int ilen, int olen)
220 free(names[i]); 220 free(names[i]);
221 } 221 }
222 free(names); 222 free(names);
223
224 closedir(d);
223} 225}
224 226
225static void _archive(char *in, char *out, int ilen, int olen) 227static void _archive(char *in, char *out, int ilen, int olen)