summaryrefslogtreecommitdiff
path: root/libavfilter/avfiltergraph.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-25 16:54:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-25 16:54:04 +0200
commitde0a1f63dff904fc30361e793400b7b9e427e31d (patch)
tree717211dac09f7e1163603cfc63b2d8ead61aacea /libavfilter/avfiltergraph.c
parent6bde1e9d14ff1e0ecff74b8ff59607f545c6f2ec (diff)
avfilter/can_merge_formats: fix memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 2f6f2fd9be..3bb5047583 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -390,6 +390,7 @@ static int can_merge_formats(AVFilterFormats *a_arg,
}
if (ret) {
av_freep(&ret->formats);
+ av_freep(&ret->refs);
av_freep(&ret);
return 1;
} else {