summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-11-11 14:37:21 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-11-11 15:40:52 +0100
commit3f099e3c290dd22cf3e344e53b6de2255c0ba12a (patch)
tree147f839850c7f0cec9cce1cde591eb501aea943c
parentb61e1465b79c9c8ed5057b5dcc73e443fd3cce06 (diff)
pbutils:encoding-target: Fix string memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=757926
-rw-r--r--gst-libs/gst/pbutils/encoding-target.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/pbutils/encoding-target.c b/gst-libs/gst/pbutils/encoding-target.c
index d386942f1..4c067a507 100644
--- a/gst-libs/gst/pbutils/encoding-target.c
+++ b/gst-libs/gst/pbutils/encoding-target.c
@@ -801,6 +801,8 @@ get_matching_filenames (gchar * path, gchar * filename)
tmp = g_build_filename (path, filename, NULL);
if (g_file_test (tmp, G_FILE_TEST_EXISTS))
res = g_list_append (res, tmp);
+ else
+ g_free (tmp);
while ((subdirname = g_dir_read_name (topdir))) {
gchar *ltmp = g_build_filename (path, subdirname, NULL);