[vlc-commits] filter: fix name leak

Thomas Guillem git at videolan.org
Mon Nov 27 16:33:27 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Nov 27 16:26:56 2017 +0100| [7f99bb740790d1d45878f06b9894a1c8ad6695a4] | committer: Thomas Guillem

filter: fix name leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f99bb740790d1d45878f06b9894a1c8ad6695a4
---

 src/misc/filter.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/misc/filter.c b/src/misc/filter.c
index d526c98720..505b0eddc7 100644
--- a/src/misc/filter.c
+++ b/src/misc/filter.c
@@ -57,7 +57,10 @@ void filter_AddProxyCallbacks( vlc_object_t *obj, filter_t *filter,
         char *name = *pname;
         int var_type = var_Type(filter, name);
         if (var_Type(obj, name))
+        {
+            free(name);
             continue;
+        }
         var_Create(obj, name,
                    var_type | VLC_VAR_DOINHERIT | VLC_VAR_ISCOMMAND);
         if ((var_type & VLC_VAR_ISCOMMAND))



More information about the vlc-commits mailing list