vendor/scs/test/problems/random_prob.h in scs-0.3.2 vs vendor/scs/test/problems/random_prob.h in scs-0.4.0
- old
+ new
@@ -1,8 +1,9 @@
#include "glbopts.h"
#include "minunit.h"
#include "problem_utils.h"
+#include "rw.h"
#include "scs.h"
#include "util.h"
static const char *random_prob(void) {
scs_int read_status;
@@ -37,9 +38,12 @@
success = ABS(perr) < 1e-4 && ABS(derr) < 1e-4 && exitflag == SCS_SOLVED;
mu_assert("random_prob: SCS failed to produce SCS_SOLVED", success);
fail = verify_solution_correct(d, k, stgs, &info, sol, exitflag);
- SCS(free_data)(d, k, stgs);
+ SCS(free_data)(d);
+ SCS(free_cone)(k);
SCS(free_sol)(sol);
+ scs_free(stgs);
+
return fail;
}