ffplay: always free inputs and outputs in configure_filtergraph
authorMarton Balint <cus@passwd.hu>
Sat, 27 Oct 2012 23:19:34 +0000 (01:19 +0200)
committerMarton Balint <cus@passwd.hu>
Thu, 1 Nov 2012 14:46:18 +0000 (15:46 +0100)
Fixes Coverity CID 733791.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c

index 90c18f4..f683149 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1681,7 +1681,7 @@ static int configure_filtergraph(AVFilterGraph *graph, const char *filtergraph,
             goto fail;
     }
 
-    return avfilter_graph_config(graph, NULL);
+    ret = avfilter_graph_config(graph, NULL);
 fail:
     avfilter_inout_free(&outputs);
     avfilter_inout_free(&inputs);