always call the destructor

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2006-04-27 20:23:49 +00:00
parent 456e27b453
commit 85ea0974f8
2 changed files with 317 additions and 283 deletions

View File

@@ -138,7 +138,8 @@ static pval *npval2(pvaltype type, YYLTYPE *first, YYLTYPE *last);
* The former is for pval, the latter for strings.
*/
%destructor {
if (yymsg[0] != 'C') {
/* XXX i think the destructor must be called always */
if (1 /* yymsg[0] != 'C' */) {
destroy_pval($$);
prev_word=0;
} else {