diff options
author | Russell Bryant <russell@russellbryant.com> | 2004-12-07 19:46:29 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2004-12-07 19:46:29 +0000 |
commit | 53f5a568fb9889ddbe544557a03f0e69bfeb14a4 (patch) | |
tree | 363ba5be1cd3cf3d8c45efe0aafdae4d87a06c72 /ast_expr.y | |
parent | d685a19c9ea48239436bb1af6be57de2a6db0552 (diff) |
fix mem leak in free_value (bug #2990)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'ast_expr.y')
-rwxr-xr-x | ast_expr.y | 2 |
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); } |