Fix memory leak in LoadVendorsFromConfigDir
The individual entries allocated by scandir need to be freed too.
This commit is contained in:
parent
fe4a384094
commit
c2f81ca7ce
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue