[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:
Herman Chen
2020-06-11 16:08:38 +08:00
parent 46bfafa614
commit 0efed5ddf1

View File

@@ -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;
} }