commit | ae9cbd09c8fdb075f6774dcf7e77d184c027b005 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Thu Sep 07 21:48:36 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Sep 07 21:48:36 2017 +0000 |
tree | 3afe6da09ee069480407e27f77c2be5525e78945 | |
parent | e2d9fa91dc5b7470884740a185d3026826ef78da [diff] | |
parent | 880017624f34d91d4630eaef9554149a18bbdb75 [diff] |
Merge "libsync: Fix a double-free." am: 16dd491aac Change-Id: I3df91f1d203423dd5f0ca6335812630c25d8bc01
diff --git a/libsync/sync.c b/libsync/sync.c index baeccda..e657658 100644 --- a/libsync/sync.c +++ b/libsync/sync.c
@@ -275,7 +275,6 @@ info = calloc(1, sizeof(struct sync_file_info) + num_fences * sizeof(struct sync_fence_info)); if (!info) { - free(legacy_info); return NULL; } info->sync_fence_info = (__u64)(uintptr_t)(info + 1);