mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
fix leaked body in error case
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user