From c9213e7353d7751370333b40f7a0b49b599ca0ef Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 26 Jul 2013 16:29:41 +0100 Subject: [PATCH] image: Free filename saved into structure on error path --- clients/image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/image.c b/clients/image.c index cbd466cf..1f3c77c2 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->filename); free(image); return NULL; }