From 7c36cd231542990e0ef8240fcc8dfd35a9e4b38b Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Mon, 14 Jan 2013 15:59:32 -0800 Subject: [PATCH] Fix memory leak when getting signal time for unsignaled fences Bug: 8000983 Change-Id: Ie88ed23fc5e8c95bfade364e090e90b7f070fa8e --- libs/ui/Fence.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ui/Fence.cpp b/libs/ui/Fence.cpp index 84f5a4776..a01ac293a 100644 --- a/libs/ui/Fence.cpp +++ b/libs/ui/Fence.cpp @@ -100,6 +100,7 @@ nsecs_t Fence::getSignalTime() const { return -1; } if (finfo->status != 1) { + sync_fence_info_free(finfo); return INT64_MAX; }