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: mdoerr
Backport-of: 36b3bbc53de074647ce04de890dc99bd5a2373e8
  • Loading branch information
zhengyu123 committed Apr 25, 2022
1 parent 2037210 commit 569ae08
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, 2018, 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 @@ -644,7 +644,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 569ae08

@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.