From 4aa3593bccd334436a583dc253d694806de30a3a Mon Sep 17 00:00:00 2001 From: skimo Date: Sun, 6 Jun 2004 12:55:11 +0000 Subject: [PATCH] return malloced memory since we define a "C" interface --- barvinok.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/barvinok.cc b/barvinok.cc index dea9c80..a296090 100644 --- a/barvinok.cc +++ b/barvinok.cc @@ -1388,7 +1388,8 @@ evalue* barvinok_enumerate_ev(Polyhedron *P, Polyhedron* C, unsigned MaxRays) Param_Vertices *V; int r = 0; unsigned nparam = C->Dimension; - evalue *eres = new evalue; + evalue *eres; + ALLOC(eres); value_init(eres->d); value_set_si(eres->d, 0); @@ -1654,7 +1655,7 @@ Enumeration* barvinok_enumerate(Polyhedron *P, Polyhedron* C, unsigned MaxRays) } free(EP->x.p); value_clear(EP->d); - delete EP; + free(EP); return res; } -- 2.11.4.GIT