mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
[mpp_mem_pool]: Add leak buffer count print
Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: If2295767b307bd8f089d6092d4a51343b61768e8
This commit is contained in:
parent
b7afc49a5b
commit
fed7460f4a
1 changed files with 3 additions and 2 deletions
|
|
@ -155,8 +155,9 @@ void MppMemPoolService::put_pool(MppMemPoolImpl *impl)
|
|||
}
|
||||
}
|
||||
|
||||
mpp_assert(!impl->used_count);
|
||||
mpp_assert(!impl->unused_count);
|
||||
if (impl->used_count || impl->unused_count)
|
||||
mpp_err_f("pool size %d found leaked buffer used:unused [%d:%d]\n",
|
||||
impl->size, impl->used_count, impl->unused_count);
|
||||
|
||||
pthread_mutex_unlock(&impl->lock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue