image: Free filename saved into structure on error path

dev
Rob Bradford 12 years ago committed by Kristian Høgsberg
parent 307e09ee34
commit c9213e7353
  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->filename);
free(image);
return NULL;
}

Loading…
Cancel
Save