Skip to content

Commit

Permalink
8284033: Leak XVisualInfo in getAllConfigs in awt_GraphicsEnv.c
Browse files Browse the repository at this point in the history
Reviewed-by: serb, prr
  • Loading branch information
zhengyu123 committed Apr 5, 2022
1 parent 59fe31a commit 36b3bbc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2022, 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
Expand Down Expand Up @@ -579,7 +579,8 @@ getAllConfigs (JNIEnv *env, int screen, AwtScreenDataPtr screenDataPtr) {
XFree (pVI8sg);
if (n1sg != 0)
XFree (pVI1sg);

if (nTrue != 0)
XFree (pVITrue);
AWT_UNLOCK ();
}

Expand Down

1 comment on commit 36b3bbc

@openjdk-notifier
Copy link

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.