[vlc-commits] filter: Fix leak

Hugo Beauzée-Luyssen git at videolan.org
Mon Aug 21 09:40:24 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Aug 21 09:37:34 2017 +0200| [f23994bf87dd86173e5c3e415ad59f43bba7ddd4] | committer: Hugo Beauzée-Luyssen

filter: Fix leak

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

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

diff --git a/src/misc/filter.c b/src/misc/filter.c
index 071e374ba4..ae35d29fcf 100644
--- a/src/misc/filter.c
+++ b/src/misc/filter.c
@@ -81,7 +81,10 @@ void filter_DelProxyCallbacks( vlc_object_t *obj, filter_t *filter,
     {
         char *name = *pname;
         if (!(var_Type(obj, name) & VLC_VAR_ISCOMMAND))
+        {
+            free(name);
             continue;
+        }
         int filter_var_type = var_Type(filter, name);
 
         if (filter_var_type & VLC_VAR_ISCOMMAND)



More information about the vlc-commits mailing list