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

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

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

libavformat/swfenc.c:477:5: assigned
  475. static int swf_write_trailer(AVFormatContext *s)
  476. {
  477.     SWFContext *swf = s->priv_data;
           ^
  478.     AVIOContext *pb = s->pb;
  479.     AVCodecContext *enc, *video_enc;

libavformat/swfenc.c:488:13: when calling `av_fifo_free` here
  486.             video_enc = enc;
  487.         else
  488.             av_fifo_free(swf->audio_fifo);
                   ^
  489.     }
  490. 

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:181:1: parameter `ptr` of av_free
      179. }
      180. 
      181. void av_free(void *ptr)
           ^
      182. {
      183. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:189:5: was invalidated by call to `free()`
      187.     _aligned_free(ptr);
      188. #else
      189.     free(ptr);
               ^
      190. #endif
      191. }

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

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

libavformat/swfenc.c:477:5: assigned
  475. static int swf_write_trailer(AVFormatContext *s)
  476. {
  477.     SWFContext *swf = s->priv_data;
           ^
  478.     AVIOContext *pb = s->pb;
  479.     AVCodecContext *enc, *video_enc;

libavformat/swfenc.c:488:13: when calling `av_fifo_free` here
  486.             video_enc = enc;
  487.         else
  488.             av_fifo_free(swf->audio_fifo);
                   ^
  489.     }
  490. 

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:181:1: parameter `ptr` of av_free
      179. }
      180. 
      181. void av_free(void *ptr)
           ^
      182. {
      183. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:189:5: invalid access occurs here
      187.     _aligned_free(ptr);
      188. #else
      189.     free(ptr);
               ^
      190. #endif
      191. }
