RFR: 8273575: memory leak in appendBootClassPath(), paths must be deallocated
David Holmes
dholmes at openjdk.java.net
Wed Sep 15 01:42:47 UTC 2021
On Wed, 15 Sep 2021 01:05:10 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
> The memory allocated and hold in the paths local variable of function appendBootClassPath() is never deallocated:
> splitPathList(pathList, &count, &paths);
> So, it is a memory leak which needs to be fixed.
> The fix is to add one line at the end of function:
> free(paths);
Looks good.
Thanks,
David
-------------
Marked as reviewed by dholmes (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/5516
More information about the serviceability-dev
mailing list