Merge "libsync: Fix a double-free."
This commit is contained in:
commit
16dd491aac
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue