mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-04-29 04:40:42 +02:00
image: Free allocated memory on error path
This commit is contained in:
parent
f0a1af9f02
commit
409f79a2c7
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue