summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2019-08-22 07:51:13 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-30 09:26:06 +0200
commit1a97b56180112cd64c6c37688cf2060d01c6402d (patch)
tree36b26dd362269f55948a14eea0a88e2d6a1a3833 /fs
parent3d78b283f252c6774842214c22efb930d3379f3a (diff)
downloadbarebox-1a97b56180112cd64c6c37688cf2060d01c6402d.tar.gz
barebox-1a97b56180112cd64c6c37688cf2060d01c6402d.tar.xz
gui: png_lode: fix freeing of uninitialized pointer
If either calloc or png_uncompress_init fails, free(png) will free the uninitialized png pointer. Avoid this and while at it postpone the img allocation till after the early exit. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions