Skip to content

Commit

Permalink
Fix Memory leak in Freeswitch ESL module.
Browse files Browse the repository at this point in the history
  • Loading branch information
RanceYtel committed Oct 20, 2020
1 parent 0fe26bc commit 294e8c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/freeswitch/esl/src/esl.c
Expand Up @@ -1406,6 +1406,7 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
if (!esl_safe_strcasecmp(hval, "text/disconnect-notice") && revent->body) {
const char *dval = esl_event_get_header(revent, "content-disposition");
if (esl_strlen_zero(dval) || strcasecmp(dval, "linger")) {
free(revent->body);
goto fail;
}
}
Expand Down

0 comments on commit 294e8c4

Please sign in to comment.