ast_free() is null tollerant.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 28 Aug 2013 16:09:12 +0000 (16:09 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 28 Aug 2013 16:09:12 +0000 (16:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397858 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/chanvars.c

index ed71a27..da7449d 100644 (file)
@@ -62,8 +62,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)
-               ast_free(var);
+       ast_free(var);
 }
 
 const char *ast_var_name(const struct ast_var_t *var)