Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
8284033: Leak XVisualInfo in getAllConfigs in awt_GraphicsEnv.c
Browse files Browse the repository at this point in the history
Backport-of: 36b3bbc53de074647ce04de890dc99bd5a2373e8
  • Loading branch information
zhengyu123 committed Apr 25, 2022
1 parent 313b033 commit 2b91865
Showing 1 changed file with 3 additions and 2 deletions.
@@ -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 2b91865

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