1
0
Fork 0
forked from nuttx/nuttx-update

mempool:fix bug when deinit mpool, wrong parameters used

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2023-12-26 13:53:43 +08:00 committed by Xiang Xiao
parent e6bf25a714
commit a9fb366314

View file

@ -895,5 +895,5 @@ void mempool_multiple_deinit(FAR struct mempool_multiple_s *mpool)
mempool_multiple_free_chunk(mpool, mpool->dict);
mempool_multiple_free_chunk(mpool, mpool->pools);
nxrmutex_destroy(&mpool->lock);
mpool->free(mpool, mpool);
mpool->free(mpool->arg, mpool);
}