8362611: [GCC static analyzer] memory leak in ps_core.c core_handle_note

Reviewed-by: dholmes, mbaesken
This commit is contained in:
Lei Zhu 2025-07-21 12:24:49 +00:00 committed by Matthias Baesken
parent fd7f78a535
commit 644e400cd1

View File

@ -286,7 +286,7 @@ static bool core_handle_note(struct ps_prochandle* ph, ELF_PHDR* note_phdr) {
if (notep->n_type == NT_PRSTATUS) {
if (core_handle_prstatus(ph, descdata, notep->n_descsz) != true) {
print_error("failed to handle NT_PRSTATUS note\n");
return false;
goto err;
}
} else if (notep->n_type == NT_AUXV) {
// Get first segment from entry point