Fix memory leak in call to cplex