]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use ast_free since ast_variable_new uses ast_calloc
authorTerry Wilson <twilson@digium.com>
Fri, 27 Aug 2010 15:11:11 +0000 (15:11 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 27 Aug 2010 15:11:11 +0000 (15:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@283834 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index f2b738c692a9722e62c8ed3c4de6b51007f74cf3..b1aa9e56febca687ec78c6158de808ff62df5441 100644 (file)
@@ -222,7 +222,7 @@ void ast_variables_destroy(struct ast_variable *v)
                v = v->next;
                ast_destroy_comment(&vn->precomments);
                ast_destroy_comment(&vn->sameline);
-               free(vn);
+               ast_free(vn);
        }
 }