commit | 99d034532744f1c3c25288095c4c53887ea9ec1c | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Tue Sep 05 16:26:36 2017 -0700 |
committer | George Burgess IV <gbiv@google.com> | Tue Sep 05 16:26:36 2017 -0700 |
tree | 283434227e4125590c2e3cd0346b6394854cb685 | |
parent | 7a05007426ce6167c8df0579cc4dd06c73b21ab4 [diff] |
libsync: Fix a double-free. sync_file_info, the only caller of legacy_fence_info_to_sync_file_info, unconditionally frees legacy_info after legacy_fence_info_to_sync_file_info is called. So, if this calloc fails, we'll end up freeing legacy_info twice. Bug: 27101951 Test: mma. Static analyzer complaint about double-free is gone. Change-Id: I43bf820af9aadf30cb8eabce57416f69a8fccf89