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); }