<AWT Dev> Integrated: JDK-8260426: awt debug_mem.c DMem_AllocateBlock might leak memory

Matthias Baesken mbaesken at openjdk.java.net
Thu Jan 28 07:38:40 UTC 2021


On Wed, 27 Jan 2021 09:56:05 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> It seems that the function DMem_AllocateBlock (debug_mem.c) has an early return that might lead to memory leaks.
> See also the sonar issue Potential leak of memory pointed to by 'header' :
> https://sonarcloud.io/project/issues?id=shipilev_jdk&languages=c&open=AXck8B7zBBG2CXpcngZM&resolved=false&severities=BLOCKER&types=BUG

This pull request has now been integrated.

Changeset: 11a70d11
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/11a70d11
Stats:     2 lines in 1 file changed: 1 ins; 0 del; 1 mod

8260426: awt debug_mem.c DMem_AllocateBlock might leak memory

Reviewed-by: psadhukhan, aivanov

-------------

PR: https://git.openjdk.java.net/jdk/pull/2252


More information about the awt-dev mailing list