From 409f79a2c73ccd7d314ecaf5234dada52834cbad Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 10 Jan 2013 19:48:55 +0000 Subject: [PATCH] image: Free allocated memory on error path --- clients/image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/image.c b/clients/image.c index 6a2bda3..e25a665 100644 --- a/clients/image.c +++ b/clients/image.c @@ -373,6 +373,7 @@ image_create(struct display *display, const char *filename, if (!image->image) { fprintf(stderr, "could not find the image %s!\n", b); + free(image); return NULL; } -- 2.7.4