fix mem leak in free_value (bug #2990)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4397 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2004-12-07 19:43:06 +00:00
parent 0caa4033c9
commit 3e7c0ce67f

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);
}