Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-06-21 06:24:03 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-06-21 06:24:03 +0400
commit90c6963daea9210d7d2104e2ece94dd4e2fffc17 (patch)
tree8f68313c3c78baa41d765bf9e24836c630908068 /libavfilter
parent6cbe81999b07862895515fcbdae7bc3a320ca29c (diff)
avfilter picture pool: double free hotfix
This fix introduces a small memleak Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avfilter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 44dd515518..a57677c0e4 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -182,10 +182,11 @@ void avfilter_link_free(AVFilterLink **link)
av_freep(&picref->audio);
av_freep(&picref->video);
- av_freep(&picref);
+ av_freep(&(*link)->pool->pic[i]);
}
}
- av_freep(&(*link)->pool);
+ (*link)->pool->count = 0;
+// av_freep(&(*link)->pool);
}
av_freep(link);
}