提交 b3f85fc1 编写于 作者: B benwaffle

fix memory leak

上级 34798ee9
......@@ -41,5 +41,6 @@ dictionary *dictionary_copy(dictionary *in){
void dictionary_free(dictionary *in){
for (int i=0; i< in->length; i++)
keyval_free(in->pairs[i]);
free(in->pairs);
free(in);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册