I’m declaring my array as float** and using malloc to create the array lines array declaration. Then, I use malloc to create columns in the “for” loop. But when I want to free it, I’m getting double free error free command.
I’ve tried to use only “free(matriz1)”, but It doesnt makes sense to me because I need to free the lines of the array first, then the variable itself.
New contributor
Gabriel Rodrigues is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.