OSDN Git Service

minor memleak
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Apr 2008 23:09:28 +0000 (23:09 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Apr 2008 23:09:28 +0000 (23:09 +0000)
Originally committed as revision 12945 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index c4f67c9..530a9bb 100644 (file)
@@ -2145,6 +2145,7 @@ void av_close_input_stream(AVFormatContext *s)
         av_freep(&s->programs[i]->stream_index);
         av_freep(&s->programs[i]);
     }
+    av_freep(&s->programs);
     flush_packet_queue(s);
     av_freep(&s->priv_data);
     av_free(s);