commit | 16dd491aac1c69ac4f143792454d9b53e855a8ef | [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 | 61cb88add2a31fe3177c10967451a37eed9a04f0 [diff] | |
parent | 4ff5ff29d26cd028d5d78f5b764dab380fd7c9f4 [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);