commit | 14e28d39f7f094225c1ddae8fa43bd792c621a8f | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Oct 29 14:12:46 2013 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Oct 29 14:12:46 2013 -0700 |
tree | f4d986698864a59ea87af253247753768916be37 | |
parent | 98f87d92d89079f274374409efcf57ca52b13c1f [diff] |
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
diff --git a/libcutils/dir_hash.c b/libcutils/dir_hash.c index be14af6..098b5db 100644 --- a/libcutils/dir_hash.c +++ b/libcutils/dir_hash.c
@@ -159,6 +159,7 @@ free(name); free(node); + closedir(d); return -1; }