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:
Rob Bradford 2012-10-09 18:46:22 +01:00 committed by Kristian Høgsberg
parent 0201708773
commit 6685d19301

View file

@ -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;