mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 08:38:04 +02:00
Fix leak in _XimXGetReadData
Spotted by Denis Dzyubenko
This commit is contained in:
parent
ae23c25b93
commit
0f0168ad18
1 changed files with 1 additions and 0 deletions
|
|
@ -358,6 +358,7 @@ _XimXGetReadData(
|
|||
(void)memcpy(buf, prop_ret, (int)nitems);
|
||||
*ret_len = (int)nitems;
|
||||
if (bytes_after_ret > 0) {
|
||||
XFree(prop_ret);
|
||||
XGetWindowProperty(im->core.display,
|
||||
spec->lib_connect_wid, prop, 0L,
|
||||
((length + bytes_after_ret + 3)/ 4), True, AnyPropertyType,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue