]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_shout] Fix memory leak in do_telecast
authorAndrey Volk <andywolk@gmail.com>
Wed, 20 Jan 2021 15:30:32 +0000 (18:30 +0300)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Mar 2021 15:49:14 +0000 (18:49 +0300)
src/mod/formats/mod_shout/mod_shout.c

index 6799b383914d1743393c2e563b54f48a202fae55..14cba068d329b962ee6e5692dffff7a7fecbb3fe 100644 (file)
@@ -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)