Merge "libsync: Fix a double-free."

This commit is contained in:
Treehugger Robot 2017-09-07 21:39:53 +00:00 committed by Gerrit Code Review
commit 16dd491aac

View file

@ -275,7 +275,6 @@ static struct sync_file_info* legacy_fence_info_to_sync_file_info(
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);