commit 3d16669c9f40046a09da59711b3f12d3daddeea4 parent cf4bd0bec89d3e92f85e56c75f397df664f1714c Author: FRIGN <dev@frign.de> Date: Sat, 19 Jul 2014 23:29:47 +0200 ... and error-out Diffstat:
M | imagefile2png.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/imagefile2png.c b/imagefile2png.c @@ -66,6 +66,7 @@ main(int argc, char *argv[]) png_row = malloc(png_row_len); if (!png_row) { fprintf(stderr, "failed to allocate row-buffer\n"); + goto err; } for (i=0; i < height; ++i) {