Fix multiple delete of an expression.
This commit is contained in:
parent
4af0acb3be
commit
29ebe486b7
3
parse.y
3
parse.y
|
|
@ -19,7 +19,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_CVS_IDENT
|
#ifdef HAVE_CVS_IDENT
|
||||||
#ident "$Id: parse.y,v 1.201 2004/10/04 01:10:54 steve Exp $"
|
#ident "$Id: parse.y,v 1.201.2.1 2005/02/19 16:38:14 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|
@ -990,7 +990,6 @@ expr_primary
|
||||||
yyerror(@2, "error: Repeat expression "
|
yyerror(@2, "error: Repeat expression "
|
||||||
"must be constant.");
|
"must be constant.");
|
||||||
delete rep;
|
delete rep;
|
||||||
delete $2;
|
|
||||||
rep = 0;
|
rep = 0;
|
||||||
}
|
}
|
||||||
PEConcat*tmp = new PEConcat(*$4, rep);
|
PEConcat*tmp = new PEConcat(*$4, rep);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue