Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

Commit 5c08afe

Browse files
committed
8325470: [AIX] use fclose after fopen in read_psinfo
Backport-of: 4513da949670dfd29ca64183edc78ca44432aeb3
1 parent baf9a79 commit 5c08afe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/hotspot/os/aix/os_perf_aix.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2022, IBM Corp.
2+
* Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
3+
* Copyright (c) 2022, 2024, IBM Corp.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
66
* This code is free software; you can redistribute it and/or modify it
@@ -87,6 +87,7 @@ static bool read_psinfo(const u_longlong_t& pid, psinfo_t& psinfo) {
8787
}
8888

8989
len = fread(&psinfo, 1, sizeof(psinfo_t), fp);
90+
fclose(fp);
9091
return len == sizeof(psinfo_t);
9192
}
9293

0 commit comments

Comments
 (0)