diff options
author | Julien Cristau <jcristau@debian.org> | 2017-01-07 16:20:31 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2017-03-26 16:54:20 +0200 |
commit | 8ad49a03ebebffbdbf21c4ef9775b7e5847496d9 (patch) | |
tree | f8825c611817f1e138496c440df4be1724c717f2 /nxcomp/ClientProxy.h | |
parent | ac03b5172a00005897705dea0fc125c0309cc59c (diff) | |
download | nx-libs-8ad49a03ebebffbdbf21c4ef9775b7e5847496d9.tar.gz nx-libs-8ad49a03ebebffbdbf21c4ef9775b7e5847496d9.tar.bz2 nx-libs-8ad49a03ebebffbdbf21c4ef9775b7e5847496d9.zip |
Fix wrong Xfree in XListFonts failure path
'ch' gets moved inside the allocated buffer as we're looping through
fonts, so keep a reference to the start of the buffer so we can pass
that to Xfree in the failure case.
Fixes: commit 20a3f99eba5001925b8b313da3accb7900eb1927 "Plug a memory leak"
Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'nxcomp/ClientProxy.h')
0 files changed, 0 insertions, 0 deletions