Skip to content
Permalink
Browse files
8260426: awt debug_mem.c DMem_AllocateBlock might leak memory
Reviewed-by: psadhukhan, aivanov
  • Loading branch information
MBaesken committed Jan 28, 2021
1 parent 396a496 commit 11a70d113e98dab39110216dd73e154bc76a8bfa
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 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
@@ -218,6 +218,7 @@ void * DMem_AllocateBlock(size_t size, const char * filename, int linenumber) {
/* add block to list of allocated memory */
header->listEnter = DMem_TrackBlock(header);
if ( header->listEnter == NULL ) {
DMem_ClientFree(header);
goto Exit;
}

1 comment on commit 11a70d1

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 11a70d1 Jan 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.