[numerics] correct memory management for ProjectionOncone_withRegularization solver
@@ -169,7 +169,7 @@ void fc3d_projection_update_with_regularization(int contact, FrictionContactProb
/* The part of MGlobal which corresponds to the current block is copied into MLocal */
- NM_extract_diag_block3(problem->M, contact, &localproblem->M->matrix0);
+ NM_copy_diag_block3(problem->M, contact, &localproblem->M->matrix0);
/**** Computation of qLocal = qBlock + sum over a row of blocks in MGlobal of the products MLocal.reactionBlock,
excluding the block corresponding to the current contact. ****/
