Results 1 to 10 of 396
Hybrid View
-
09-27-2014, 09:01 AM #1
Memory leak....
Dacb: Random new topic here: You modified the code to allocate space this way:
(I might have already added this code to your branch of the Marlin tree... But I could not Sync it)
Code:// "A" matrix of the linear system of equations double* eqnAMatrix = (double*)malloc(sizeof(double) * (n_points*n_points*3)); // "B" vector of Z points double* eqnBVector = (double*)malloc(sizeof(double) * (n_points*n_points))
Code:if ( eqnAMatrix==NULL || eqnBVector==NULL) { SERIAL_PROTOCOLPGM("?Memory not available for Auto Bed Leveling.\n"); if (eqnAVector) free(eqnAVector); if (eqnBVector) free(eqnBVector); break; }
Code:#endif // ORIGIN_FRONT_RIGHT } set_bed_level_equation_lsq(plane_equation_coefficients); free(plane_equation_coefficients); free(eqnAVector); free(eqnBVector); #else // AUTO_BED_LEVELING_GRID not defined
Last edited by Roxy; 09-27-2014 at 06:52 PM.
Qidi X Plus 3 Paper thin first...
05-27-2024, 01:15 AM in General 3D Printing Discussion