Skip to content

Commit d35dea7

Browse files
committed
8266187: Memory leak in appendBootClassPath()
Backport-of: aa90df6f51940a73f9aa078a32768855c8568034
1 parent 83fbc96 commit d35dea7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jdk/src/share/instrument/InvocationAdapter.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -829,6 +829,7 @@ appendBootClassPath( JPLISAgent* agent,
829829

830830
resolved=resolve(parent, path);
831831
jvmtierr= (*jvmtienv)->AddToBootstrapClassLoaderSearch(jvmtienv, resolved);
832+
free(resolved);
832833
}
833834

834835
/* print warning if boot class path not updated */

0 commit comments

Comments
 (0)
close