commit | 880017624f34d91d4630eaef9554149a18bbdb75 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Sep 07 21:39:53 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Sep 07 21:39:53 2017 +0000 |
tree | 1eac5356c7c5b8c10e8eb778462bac902a65eb67 | |
parent | 0e4287cbfe3978fbc4f092d52c2658039e9bd808 [diff] | |
parent | 99d034532744f1c3c25288095c4c53887ea9ec1c [diff] |
Merge "libsync: Fix a double-free."
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);