Skip to content
Permalink
Browse files
8266187: Memory leak in appendBootClassPath()
Co-authored-by: Wang Huang <whuang@openjdk.org>
Co-authored-by: Sun Jianye <sunjianye@huawei.com>
Reviewed-by: kevinw, mli, alanb
  • Loading branch information
2 people authored and Kevin Walls committed May 4, 2021
1 parent b651904 commit aa90df6f51940a73f9aa078a32768855c8568034
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/java.instrument/share/native/libinstrument/InvocationAdapter.c
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -949,6 +949,7 @@ appendBootClassPath( JPLISAgent* agent,

resolved = resolve(parent, path);
jvmtierr = (*jvmtienv)->AddToBootstrapClassLoaderSearch(jvmtienv, resolved);
free(resolved);
}

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

1 comment on commit aa90df6

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on aa90df6 May 4, 2021

Please sign in to comment.