From a1a397420e5e254ab5d7c9a8e36f869e09a57947 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 30 Apr 2014 16:10:08 -0400 Subject: [PATCH] fix leaked body in error case --- libs/esl/src/esl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/esl/src/esl.c b/libs/esl/src/esl.c index 769d198176..6958dd14aa 100644 --- a/libs/esl/src/esl.c +++ b/libs/esl/src/esl.c @@ -1370,6 +1370,7 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_ if (r < 0) { if (!(strerror_r(handle->errnum, handle->err, sizeof(handle->err)))) *(handle->err)=0; + free(body); goto fail; } else if (r == 0) { continue;