Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 614fc323 authored by George Burgess IV's avatar George Burgess IV Committed by android-build-merger
Browse files

Merge "libsync: Fix a double-free." am: 16dd491a

am: 12f6c480

Change-Id: I6dd5583c7d267826c4c26baf3419c863e3948e81
parents 69596c2d 12f6c480
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -275,7 +275,6 @@ static struct sync_file_info* legacy_fence_info_to_sync_file_info(
    info = calloc(1, sizeof(struct sync_file_info) +
    info = calloc(1, sizeof(struct sync_file_info) +
                     num_fences * sizeof(struct sync_fence_info));
                     num_fences * sizeof(struct sync_fence_info));
    if (!info) {
    if (!info) {
        free(legacy_info);
        return NULL;
        return NULL;
    }
    }
    info->sync_fence_info = (__u64)(uintptr_t)(info + 1);
    info->sync_fence_info = (__u64)(uintptr_t)(info + 1);