[FFmpeg-cvslog] avfilter picture pool: double free hotfix
Michael Niedermayer
git at videolan.org
Tue Jun 21 05:08:24 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 21 04:24:03 2011 +0200| [90c6963daea9210d7d2104e2ece94dd4e2fffc17] | committer: Michael Niedermayer
avfilter picture pool: double free hotfix
This fix introduces a small memleak
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=90c6963daea9210d7d2104e2ece94dd4e2fffc17
---
libavfilter/avfilter.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 44dd515..a57677c 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);
}
More information about the ffmpeg-cvslog
mailing list