aboutsummaryrefslogtreecommitdiffstats
path: root/ast_expr.y
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-07 19:46:29 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-07 19:46:29 +0000
commitb64c7117dddd2cd4dba0a24a3ba60166ee0167c4 (patch)
tree363ba5be1cd3cf3d8c45efe0aafdae4d87a06c72 /ast_expr.y
parenteb3ca5535904004d2d3dd72bee53b690a8778886 (diff)
fix mem leak in free_value (bug #2990)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4398 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'ast_expr.y')
-rwxr-xr-xast_expr.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/ast_expr.y b/ast_expr.y
index 97b2b021c..71546f1b0 100755
--- a/ast_expr.y
+++ b/ast_expr.y
@@ -215,6 +215,8 @@ struct val *vp;
}
if (vp->type == string || vp->type == numeric_string)
free (vp->u.s);
+ if (vp)
+ free (vp);
}