image: Free allocated memory on error path
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 @@
 
 	if (!image->image) {
 		fprintf(stderr, "could not find the image %s!\n", b);
+		free(image);
 		return NULL;
 	}