From 63eb14e5dd495d3544b25de4e373a34659649194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 18 Jan 2008 10:05:53 +0000 Subject: [PATCH] gst/multifile/gstmultifilesrc.c: Fix memory leak spotted by the unit test. Original commit message from CVS: * gst/multifile/gstmultifilesrc.c: (gst_multi_file_src_create): Fix memory leak spotted by the unit test. --- ChangeLog | 5 +++++ gst/multifile/gstmultifilesrc.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8d08b99daf..a731e15c50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-18 Sebastian Dröge + + * gst/multifile/gstmultifilesrc.c: (gst_multi_file_src_create): + Fix memory leak spotted by the unit test. + 2008-01-18 Sebastian Dröge * tests/check/Makefile.am: diff --git a/gst/multifile/gstmultifilesrc.c b/gst/multifile/gstmultifilesrc.c index 35ded484b0..f2de1b864c 100644 --- a/gst/multifile/gstmultifilesrc.c +++ b/gst/multifile/gstmultifilesrc.c @@ -283,6 +283,7 @@ gst_multi_file_src_create (GstPushSrc * src, GstBuffer ** buffer) if (multifilesrc->successful_read) { /* If we've read at least one buffer successfully, not finding the * next file is EOS. */ + g_free (filename); return GST_FLOW_UNEXPECTED; } else { goto handle_error;