Memory leak in tinyobj_parse_and_index_mtl_file
Snigelson opened this issue · comments
Snigel commented
Memory is allocates for line_infos
by get_line_infos
, but the memory is never free'd.
Adding TINYOBJ_FREE(line_infos);
at the end if the function solves this.
Syoyo Fujita commented
line_infos
are freed at here:
tinyobjloader-c/tinyobj_loader_c.h
Line 1402 in 574390b
but may be not free'ed in tinyobj_parse_and_index_mtl_file:
tinyobjloader-c/tinyobj_loader_c.h
Line 824 in 574390b
You can send us PR!
Syoyo Fujita commented
Closed via #54