]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove condition for mem leak
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 12 Nov 2013 18:33:28 +0000 (12:33 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 12 Nov 2013 18:33:32 +0000 (12:33 -0600)
libs/esl/src/esl.c

index d1866654133f142a12dfb6329ac2945a4430ed74..ede0675df01ca11a0eceac886d0fcb872837af8e 100644 (file)
@@ -1513,6 +1513,10 @@ ESL_DECLARE(esl_status_t) esl_send_recv_timed(esl_handle_t *handle, const char *
        }
 
  recv: 
+       
+       esl_event_safe_destroy(&handle->last_sr_event);
+
+       *handle->last_sr_reply = '\0';
 
        status = esl_recv_event_timed(handle, ms, 0, &handle->last_sr_event);