Fix memory leak in LoadVendorsFromConfigDir

The individual entries allocated by scandir need to be freed too.
This commit is contained in:
Gabríel Arthúr Pétursson 2017-10-06 22:39:20 +00:00
parent fe4a384094
commit c2f81ca7ce

View file

@ -121,6 +121,7 @@ void LoadVendorsFromConfigDir(const char *dirName)
} else {
fprintf(stderr, "ERROR: Could not allocate vendor library path name\n");
}
free(entries[i]);
}
free(entries);