image: Free filename saved into structure on error path
diff --git a/clients/image.c b/clients/image.c
index cbd466c..1f3c77c 100644
--- a/clients/image.c
+++ b/clients/image.c
@@ -373,6 +373,7 @@
 
 	if (!image->image) {
 		fprintf(stderr, "could not find the image %s!\n", b);
+		free(image->filename);
 		free(image);
 		return NULL;
 	}