fixed one bug in token_tree's destructor

This commit is contained in:
zsx 2018-08-20 10:31:12 +08:00
parent c9e5e010a7
commit eca1d07747
2 changed files with 7 additions and 2 deletions

View File

@ -39,7 +39,9 @@ token_tree::token_tree(void)
token_tree::~token_tree(void)
{
acl_token_tree_destroy(tree_);
delete iter_;
if (iter_) {
acl_myfree(iter_);
}
}
bool token_tree::insert(const char* key, void* ctx)

View File

@ -1,4 +1,4 @@
%define release_id 15
%define release_id 16
Summary: The powerful c/c++ library and server framework
Name: acl-libs
@ -133,6 +133,9 @@ fi
%changelog
* Mon Aug 20 2018 zhengshuxin@qiyi.com 3.4.1-16-20180820.10
- fixed one bug in token_tree's destructor
* Sun Aug 19 2018 zhengshuxin@qiyi.com 3.4.1-15-20180819.15
- lib_acl_cpp: add token_tree class