libavformat/swfenc.c:491: error: Use After Free
  call to `av_fifo_free()` eventually accesses memory that was invalidated by call to `free()` on line 491 indirectly during the call to `av_fifo_free()`.

libavformat/swfenc.c:478:1: invalidation part of the trace starts here
476. }
477. 
478. static int swf_write_trailer(AVFormatContext *s)
     ^
479. {
480.     SWFContext *swf = s->priv_data;

libavformat/swfenc.c:478:1: parameter `s` of swf_write_trailer
  476. }
  477. 
  478. static int swf_write_trailer(AVFormatContext *s)
       ^
  479. {
  480.     SWFContext *swf = s->priv_data;

libavformat/swfenc.c:480:5: assigned
  478. static int swf_write_trailer(AVFormatContext *s)
  479. {
  480.     SWFContext *swf = s->priv_data;
           ^
  481.     AVIOContext *pb = s->pb;
  482.     AVCodecParameters *par, *video_par;

libavformat/swfenc.c:491:13: when calling `av_fifo_free` here
  489.             video_par = par;
  490.         else
  491.             av_fifo_free(swf->audio_fifo);
                   ^
  492.     }
  493. 

libavutil/fifo.c:38:1: parameter `f` of av_fifo_free
    36. }
    37. 
    38. void av_fifo_free(AVFifoBuffer *f)
        ^
    39. {
    40.     if (f) {

libavutil/fifo.c:42:9: when calling `av_free` here
    40.     if (f) {
    41.         av_free(f->buffer);
    42.         av_free(f);
                ^
    43.     }
    44. }

libavutil/mem.c:170:1: parameter `ptr` of av_free
      168. }
      169. 
      170. void av_free(void *ptr)
           ^
      171. {
      172. #if HAVE_ALIGNED_MALLOC

libavutil/mem.c:175:5: was invalidated by call to `free()`
      173.     _aligned_free(ptr);
      174. #else
      175.     free(ptr);
               ^
      176. #endif
      177. }

libavformat/swfenc.c:478:1: use-after-lifetime part of the trace starts here
476. }
477. 
478. static int swf_write_trailer(AVFormatContext *s)
     ^
479. {
480.     SWFContext *swf = s->priv_data;

libavformat/swfenc.c:478:1: parameter `s` of swf_write_trailer
  476. }
  477. 
  478. static int swf_write_trailer(AVFormatContext *s)
       ^
  479. {
  480.     SWFContext *swf = s->priv_data;

libavformat/swfenc.c:480:5: assigned
  478. static int swf_write_trailer(AVFormatContext *s)
  479. {
  480.     SWFContext *swf = s->priv_data;
           ^
  481.     AVIOContext *pb = s->pb;
  482.     AVCodecParameters *par, *video_par;

libavformat/swfenc.c:491:13: when calling `av_fifo_free` here
  489.             video_par = par;
  490.         else
  491.             av_fifo_free(swf->audio_fifo);
                   ^
  492.     }
  493. 

libavutil/fifo.c:38:1: parameter `f` of av_fifo_free
    36. }
    37. 
    38. void av_fifo_free(AVFifoBuffer *f)
        ^
    39. {
    40.     if (f) {

libavutil/fifo.c:42:9: when calling `av_free` here
    40.     if (f) {
    41.         av_free(f->buffer);
    42.         av_free(f);
                ^
    43.     }
    44. }

libavutil/mem.c:170:1: parameter `ptr` of av_free
      168. }
      169. 
      170. void av_free(void *ptr)
           ^
      171. {
      172. #if HAVE_ALIGNED_MALLOC

libavutil/mem.c:175:5: invalid access occurs here
      173.     _aligned_free(ptr);
      174. #else
      175.     free(ptr);
               ^
      176. #endif
      177. }
