diff options
| author | Rob Bradford <rob@linux.intel.com> | 2012-10-09 18:46:22 +0100 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-10-09 23:01:42 -0400 |
| commit | 6685d1930162b71d04fc3d6796b21a28dc025ab4 (patch) | |
| tree | b6c122a47a14e973a30fdcb6d63574c984853891 /src/connection.c | |
| parent | xcursor: Fix allocation based on string length (diff) | |
| download | wayland-6685d1930162b71d04fc3d6796b21a28dc025ab4.tar wayland-6685d1930162b71d04fc3d6796b21a28dc025ab4.tar.gz wayland-6685d1930162b71d04fc3d6796b21a28dc025ab4.tar.bz2 wayland-6685d1930162b71d04fc3d6796b21a28dc025ab4.tar.lz wayland-6685d1930162b71d04fc3d6796b21a28dc025ab4.tar.xz wayland-6685d1930162b71d04fc3d6796b21a28dc025ab4.tar.zst wayland-6685d1930162b71d04fc3d6796b21a28dc025ab4.zip | |
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>
Diffstat (limited to 'src/connection.c')
| -rw-r--r-- | src/connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c index dbe0fa9..8f4b44c 100644 --- a/src/connection.c +++ b/src/connection.c @@ -611,6 +611,7 @@ err: printf("request too big to marshal, maximum size is %zu\n", sizeof closure->buffer); errno = ENOMEM; + free(closure); return NULL; |
