8284033: Leak XVisualInfo in getAllConfigs in awt_GraphicsEnv.c

Reviewed-by: serb, prr
This commit is contained in:
Zhengyu Gu 2022-04-05 00:39:02 +00:00
parent 59fe31a090
commit 36b3bbc53d

View File

@ -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
@ -579,7 +579,8 @@ cleanup:
XFree (pVI8sg);
if (n1sg != 0)
XFree (pVI1sg);
if (nTrue != 0)
XFree (pVITrue);
AWT_UNLOCK ();
}