Merged revisions 89536 via svnmerge from
[asterisk/asterisk.git] / main / chanvars.c
index e21b3fc..14a89f7 100644 (file)
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
-#include <stdlib.h>
-#include <string.h>
-
 #include "asterisk/chanvars.h"
-#include "asterisk/logger.h"
 #include "asterisk/strings.h"
 #include "asterisk/utils.h"
 
@@ -55,7 +51,7 @@ struct ast_var_t *ast_var_assign(const char *name, const char *value)
 void ast_var_delete(struct ast_var_t *var)
 {
        if (var)
-               free(var);
+               ast_free(var);
 }
 
 const char *ast_var_name(const struct ast_var_t *var)