diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2015-11-11 14:37:21 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-11-11 15:40:52 +0100 |
commit | 3f099e3c290dd22cf3e344e53b6de2255c0ba12a (patch) | |
tree | 147f839850c7f0cec9cce1cde591eb501aea943c | |
parent | b61e1465b79c9c8ed5057b5dcc73e443fd3cce06 (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.c | 2 |
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); |