# HG changeset patch # User marci # Date 1133372941 0 # Node ID a2dfee683243504aff279120949ead09334f52b1 # Parent 173b53b28d7c410600d068aa45e26020dc563b6d bug fix diff -r 173b53b28d7c -r a2dfee683243 lemon/lp_cplex.cc --- a/lemon/lp_cplex.cc Wed Nov 30 17:00:17 2005 +0000 +++ b/lemon/lp_cplex.cc Wed Nov 30 17:49:01 2005 +0000 @@ -285,11 +285,9 @@ return objval; } bool LpCplex::_isBasicCol(int i) { - int* cstat=new int[CPXgetnumcols(env, lp)]; - return CPXgetbase(env, lp, cstat, NULL); - bool result=(cstat[i]==CPX_BASIC); - delete[] cstat; - return result; + int cstat[CPXgetnumcols(env, lp)]; + CPXgetbase(env, lp, cstat, NULL); + return (cstat[i]==CPX_BASIC); } //7.5-os cplex statusai (Vigyazat: a 9.0-asei masok!)