From f01d5647dcd7dbb641c12cd8ceb2198ed9dadb97 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 cbd466cfa..1f3c77c2a 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; }