image: Free allocated memory on error path

Rob Bradford 12 years ago committed by Kristian Høgsberg
parent f0a1af9f02
commit 409f79a2c7
  1. 1
      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;
}

Loading…
Cancel
Save