From: Andrey Volk Date: Wed, 20 Jan 2021 15:30:32 +0000 (+0300) Subject: [mod_shout] Fix memory leak in do_telecast X-Git-Tag: v1.10.6^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29b50439042d012d0eb020efc94201df38b0a6f8;p=thirdparty%2Ffreeswitch.git [mod_shout] Fix memory leak in do_telecast --- diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index 6799b38391..14cba068d3 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -1333,8 +1333,6 @@ void do_telecast(switch_stream_handle_t *stream) end: - switch_safe_free(uuid); - if (gfp) { lame_close(gfp); gfp = NULL; @@ -1350,6 +1348,8 @@ void do_telecast(switch_stream_handle_t *stream) switch_core_session_rwunlock(tsession); } + + switch_safe_free(uuid); } void do_broadcast(switch_stream_handle_t *stream)