Fix memory leak when getting signal time for unsignaled fences
Bug: 8000983 Change-Id: Ie88ed23fc5e8c95bfade364e090e90b7f070fa8e
This commit is contained in:
parent
800856a7b7
commit
7c36cd2315
@ -100,6 +100,7 @@ nsecs_t Fence::getSignalTime() const {
|
||||
return -1;
|
||||
}
|
||||
if (finfo->status != 1) {
|
||||
sync_fence_info_free(finfo);
|
||||
return INT64_MAX;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user