8318591: avoid leaks in loadlib_aix.cpp reload_table()

Reviewed-by: mdoerr, lucy
This commit is contained in:
Matthias Baesken 2023-10-24 07:34:05 +00:00
parent cb383c05b2
commit 6d3cb459dc

@ -225,6 +225,7 @@ static bool reload_table() {
lm->path = g_stringlist.add(ldi->ldinfo_filename);
if (!lm->path) {
trcVerbose("OOM.");
free(lm);
goto cleanup;
}
@ -246,6 +247,7 @@ static bool reload_table() {
lm->member = g_stringlist.add(p_mbr_name);
if (!lm->member) {
trcVerbose("OOM.");
free(lm);
goto cleanup;
}
} else {