fix mem leak in free_value (bug #2990)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant 2004-12-07 19:46:29 +00:00
parent d685a19c9e
commit 53f5a568fb
1 changed files with 2 additions and 0 deletions

View File

@ -215,6 +215,8 @@ struct val *vp;
}
if (vp->type == string || vp->type == numeric_string)
free (vp->u.s);
if (vp)
free (vp);
}