Fix memory leak in parser

This commit is contained in:
hasufell 2014-05-09 14:54:14 +02:00
parent ab95762d50
commit 466a8ef6e0
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ HE_obj *parse_obj(char const * const obj_string)
obj->fc = fc;
free(string);
for (uint32_t i = 0; i < fc; i++)
free(face_v[i]);
free(face_v);
return obj;
}