Skip to content
Snippets Groups Projects
Commit c5ab17bc authored by Matthieu Herrb's avatar Matthieu Herrb Committed by Alan Coopersmith
Browse files

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: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent 515294bb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment