Based on just reading over the code, the functions in ply.h do a lot of mallocs (myallocs) and largely don't appear to have corresponding free calls, so e.g. ply_get_element_description allocates for each description and igl::readPLY doesn't appear to free this memory.
Based on just reading over the code, the functions in ply.h do a lot of mallocs (
myallocs) and largely don't appear to have corresponding free calls, so e.g. ply_get_element_description allocates for each description and igl::readPLY doesn't appear to free this memory.