From 22f15137e8a04e1796ea094e7e56f47ceeccf83f Mon Sep 17 00:00:00 2001 From: Olga Mikhaltsova Date: Thu, 28 Oct 2021 20:40:37 +0000 Subject: [PATCH] 8273575: memory leak in appendBootClassPath(), paths must be deallocated Backport-of: 74ffe12267cb3ae63072a06f50083fd0352d8049 --- .../share/native/libinstrument/InvocationAdapter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java.instrument/share/native/libinstrument/InvocationAdapter.c b/src/java.instrument/share/native/libinstrument/InvocationAdapter.c index fb6f927c202..34b8333a6bf 100644 --- a/src/java.instrument/share/native/libinstrument/InvocationAdapter.c +++ b/src/java.instrument/share/native/libinstrument/InvocationAdapter.c @@ -975,4 +975,5 @@ appendBootClassPath( JPLISAgent* agent, if (haveBasePath && parent != canonicalPath) { free(parent); } + free(paths); }