avformat/asfenc: use av_freep() for extra saftey
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Sep 2013 11:18:17 +0000 (13:18 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Sep 2013 11:21:11 +0000 (13:21 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/asfenc.c

index 6cc19c7..85748c7 100644 (file)
@@ -884,7 +884,7 @@ static int asf_write_trailer(AVFormatContext *s)
         asf_write_header1(s, file_size, data_size - asf->data_offset);
     }
 
-    av_free(asf->index_ptr);
+    av_freep(&asf->index_ptr);
     return 0;
 }