Merge "libsync: Fix a double-free."

am: 16dd491aac

Change-Id: I3df91f1d203423dd5f0ca6335812630c25d8bc01
This commit is contained in:
George Burgess IV 2017-09-07 21:48:36 +00:00 committed by android-build-merger
commit 12f6c4809e
1 changed files with 0 additions and 1 deletions

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);