commit | 968b6a71cab4dbcece3e3e92429b12091b8a5b04 | [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 | 78eba28d1dc6908fe590eefbad6d815ca069256b | |
parent | 481106713e6b7cf8f32871c8f32768cdb4f4ba9d [diff] [blame] |
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/file_sync_service.c b/file_sync_service.c index d3e841b..f24f14c 100644 --- a/file_sync_service.c +++ b/file_sync_service.c
@@ -110,6 +110,7 @@ if(writex(s, &msg.dent, sizeof(msg.dent)) || writex(s, de->d_name, len)) { + closedir(d); return -1; } }