fix few mem leaks

This commit is contained in:
Philippe Teuwen
2019-10-06 01:18:04 +02:00
parent 78c153fe74
commit 1f364106ce
14 changed files with 31 additions and 15 deletions

View File

@@ -89,6 +89,8 @@ int GetModels(char *Models[], int *count, uint8_t *width) {
memcpy(tmp, model.name, size);
Models[mode] = tmp;
width[mode] = plen(model.spoly);
} else {
free(tmp);
}
}
mfree(&model);