RFR: 8273575: memory leak in appendBootClassPath(), paths must be deallocated
    Alex Menkov 
    amenkov at openjdk.java.net
       
    Wed Sep 15 19:26:47 UTC 2021
    
    
  
On Wed, 15 Sep 2021 01:05:10 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
> 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);
Marked as reviewed by amenkov (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/5516
    
    
More information about the serviceability-dev
mailing list