ffprobe: prefer av_freep() over av_free() for global print_format option.
authorClément Bœsch <ubitux@gmail.com>
Tue, 18 Oct 2011 17:09:40 +0000 (19:09 +0200)
committerClément Bœsch <ubitux@gmail.com>
Tue, 18 Oct 2011 17:11:05 +0000 (19:11 +0200)
It could be re-used for instance in case ffprobe would support multiple
input files.

ffprobe.c

index 52b33f8..470001c 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -842,7 +842,7 @@ static int probe_file(const char *filename)
     writer_close(&wctx);
 
 end:
-    av_free(print_format);
+    av_freep(&print_format);
 
     return ret;
 }