aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/SetLocale.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-10 11:07:47 -0700
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:28 +0200
commit0574a55ebd9243cd8d0a5d0ee6161c598f99aef4 (patch)
tree181c06bb8eb62b171dcd0fc6577c5227f0202c24 /nx-X11/lib/X11/SetLocale.c
parenta6d9409b060a23ad709a03a14518091cab55ee3e (diff)
downloadnx-libs-0574a55ebd9243cd8d0a5d0ee6161c598f99aef4.tar.gz
nx-libs-0574a55ebd9243cd8d0a5d0ee6161c598f99aef4.tar.bz2
nx-libs-0574a55ebd9243cd8d0a5d0ee6161c598f99aef4.zip
Avoid memory leak/corruption if realloc fails in XlcDL.c:resolve_object()
Previously, if realloc failed to increase the size, we'd still record that we had allocated the larger size, but the pointer to it would be NULL, causing future calls to be broken, and the previous allocation to be lost/leaked. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/SetLocale.c')
0 files changed, 0 insertions, 0 deletions