summaryrefslogtreecommitdiff
path: root/src/RdFToI.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2023-01-12 15:05:39 +1000
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-12 15:47:43 -0800
commitc5ab17bcc34914c0b0707d2135dbebe9a367c5f0 (patch)
tree91996fda87aef1dd475be48ed418b742e158d7dc /src/RdFToI.c
parent515294bb8023a45ff916696d0a14308ff4f3a376 (diff)
Prevent a double free in the error code path
xpmParseDataAndCreate() calls XDestroyImage() in the error path. Reproducible with sxpm "zero-width.xpm", that file is in the test/ directory. The same approach is needed in the bytes_per_line == 0 condition though here it just plugs a memory leak. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/RdFToI.c')
0 files changed, 0 insertions, 0 deletions