diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-01-18 15:43:21 -0800 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-01-18 15:43:22 -0800 |
commit | 412d55c7ee5ce42dc52e0c03c3e0d1c5c2d9d870 (patch) | |
tree | 705c044ec6bf8820f1a5fbba8d642ef78310513f /ext4_utils/ext4_utils.c | |
parent | 0dbb4f8155df7852810e257de767b1f701f2fe3c (diff) | |
parent | 0a5b2a30ff134958d028e995b4e4cb9cf9021bd9 (diff) | |
download | extras-412d55c7ee5ce42dc52e0c03c3e0d1c5c2d9d870.tar.gz |
Merge "fix fd leaking and deallocation freed resource"
Diffstat (limited to 'ext4_utils/ext4_utils.c')
-rw-r--r-- | ext4_utils/ext4_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext4_utils/ext4_utils.c b/ext4_utils/ext4_utils.c index d41b92d5..3d5895e3 100644 --- a/ext4_utils/ext4_utils.c +++ b/ext4_utils/ext4_utils.c @@ -460,6 +460,7 @@ static u64 get_block_device_size(const char *filename) #elif defined(__APPLE__) && defined(__MACH__) ret = ioctl(fd, DKIOCGETBLOCKCOUNT, &size); #else + close(fd); return 0; #endif |