mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-12 13:29:55 -05:00
connection: Add missing free from error path
On the error codepath that errors out on ENOMEM we should free the allocated closure. Signed-off-by: Rob Bradford <rob@linux.intel.com>
This commit is contained in:
parent
0201708773
commit
6685d19301
1 changed files with 1 additions and 0 deletions
|
|
@ -611,6 +611,7 @@ err:
|
||||||
printf("request too big to marshal, maximum size is %zu\n",
|
printf("request too big to marshal, maximum size is %zu\n",
|
||||||
sizeof closure->buffer);
|
sizeof closure->buffer);
|
||||||
errno = ENOMEM;
|
errno = ENOMEM;
|
||||||
|
free(closure);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue