I have a struct that only contains pointers to memory that I\'ve allocated. Is there a way to recursively free each element that is a pointer rather than calling free on eac
Not really - although you can write a method to do all six frees so that you never miss one.
void freeModel( model* md1 ) { free (mdl->vertices); free (mdl->normals); free (mdl->uv_coords); free (mdl->quads); free (mdl->triangles); free (mdl); }