Skip to content

Commit 6d3cb45

Browse files
committedOct 24, 2023
8318591: avoid leaks in loadlib_aix.cpp reload_table()
Reviewed-by: mdoerr, lucy
1 parent cb383c0 commit 6d3cb45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/hotspot/os/aix/loadlib_aix.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ static bool reload_table() {
225225
lm->path = g_stringlist.add(ldi->ldinfo_filename);
226226
if (!lm->path) {
227227
trcVerbose("OOM.");
228+
free(lm);
228229
goto cleanup;
229230
}
230231

@@ -246,6 +247,7 @@ static bool reload_table() {
246247
lm->member = g_stringlist.add(p_mbr_name);
247248
if (!lm->member) {
248249
trcVerbose("OOM.");
250+
free(lm);
249251
goto cleanup;
250252
}
251253
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.