]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7519: CID:1294454 fix leak
authorSeven Du <dujinfang@gmail.com>
Wed, 27 May 2015 23:08:45 +0000 (07:08 +0800)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:35 +0000 (12:47 -0500)
src/mod/applications/mod_av/avformat.c

index f8ff97ce6aecaad2ef455119c461451a408c4450..80b17c516af9fc18f4c6628dd2f320a12bc0ff8b 100644 (file)
@@ -906,6 +906,8 @@ SWITCH_STANDARD_APP(record_av_function)
        switch_core_session_set_read_codec(session, NULL);
        switch_core_codec_destroy(&codec);
 
+       if (buffer) switch_buffer_destroy(&buffer);
+
  done:
        switch_core_session_video_reset(session);
 }