diff --git a/src/connection.c b/src/connection.c index dbe0fa9d..8f4b44cd 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;