mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[mpp_trie]: Fix memory leak of node and info
Change-Id: Ide75f6401c0dceb4fca315fa8a5f84812c6a8eb4 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -142,7 +142,11 @@ MPP_RET mpp_trie_deinit(MppTrie trie)
|
|||||||
return MPP_ERR_NULL_PTR;
|
return MPP_ERR_NULL_PTR;
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_FREE(trie);
|
MppTrieImpl *p = (MppTrieImpl *)trie;
|
||||||
|
|
||||||
|
MPP_FREE(p->nodes);
|
||||||
|
MPP_FREE(p->info);
|
||||||
|
MPP_FREE(p);
|
||||||
|
|
||||||
return MPP_OK;
|
return MPP_OK;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user