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);
------------- Commit messages: - Merge - 8273575: memory leak in appendBootClassPath(), paths must be deallocated Changes: https://git.openjdk.java.net/jdk/pull/5516/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5516&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8273575 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.java.net/jdk/pull/5516.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/5516/head:pull/5516 PR: https://git.openjdk.java.net/jdk/pull/5516