Fix memory leak when getting signal time for unsignaled fences

Bug: 8000983
Change-Id: Ie88ed23fc5e8c95bfade364e090e90b7f070fa8e
This commit is contained in:
Jesse Hall 2013-01-14 15:59:32 -08:00
parent 800856a7b7
commit 7c36cd2315

View File

@ -100,6 +100,7 @@ nsecs_t Fence::getSignalTime() const {
return -1;
}
if (finfo->status != 1) {
sync_fence_info_free(finfo);
return INT64_MAX;
}