mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-05 19:18:10 +02:00
ximcp: don't leak window if XGetAtomName() fails
Found by Oracle Parfait 13.3 static analyzer:
X Resource Leak [X-resource-leak]:
Leaked X Resource window
at line 306 of imDefIm.c in function '_XimPreConnectionIM'.
window initialized at line 300 with XCreateSimpleWindow
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/269>
This commit is contained in:
parent
df1f1a47f9
commit
41bc1a9dbe
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ _XimPreConnectionIM(
|
|||
|
||||
/* server name check */
|
||||
if( !(str = XGetAtomName( display, selection )) )
|
||||
return False;
|
||||
goto Error;
|
||||
if(!_XimCheckServerName(im, str)) {
|
||||
XFree( (XPointer)str );
|
||||
goto Error;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue