Skip to content
Snippets Groups Projects
Commit f9a0edc1 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

Revert "malloc -> new"

This reverts commit 49dba2a7.
parent bfe2f849
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ void QPProblem_s::ReleaseMemory()
delete [] war;
if (U!=0)
delete [] U;
free(U);
}
void QPProblem_s::AllocateMemory()
......@@ -96,7 +96,7 @@ void QPProblem_s::AllocateMemory()
war= new double[lwar];
iwar = new int[liwar]; // The Cholesky decomposition is done internally.
U = new double[mnn];
U = (double *)malloc( sizeof(double)*(unsigned int)mnn); // Returns the Lagrange multipliers.;
DS = new double[(8*m_QP_N+1)*2*(m_QP_N+m_stepNumber)];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment