From: Rob Bradford <[email protected]>

---
 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;
        }
 
-- 
1.7.11.7

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to