Skip to content

Commit 644e400

Browse files
KorovMBaesken
authored andcommitted
8362611: [GCC static analyzer] memory leak in ps_core.c core_handle_note
Reviewed-by: dholmes, mbaesken
1 parent fd7f78a commit 644e400

File tree

1 file changed

+1
-1
lines changed
  • src/jdk.hotspot.agent/linux/native/libsaproc

1 file changed

+1
-1
lines changed

src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static bool core_handle_note(struct ps_prochandle* ph, ELF_PHDR* note_phdr) {
286286
if (notep->n_type == NT_PRSTATUS) {
287287
if (core_handle_prstatus(ph, descdata, notep->n_descsz) != true) {
288288
print_error("failed to handle NT_PRSTATUS note\n");
289-
return false;
289+
goto err;
290290
}
291291
} else if (notep->n_type == NT_AUXV) {
292292
// Get first segment from entry point

0 commit comments

Comments
 (0)