[vlc-commits] xcb_apps: fix leaks on error

Rémi Denis-Courmont git at videolan.org
Sun May 14 09:17:13 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun May 14 10:16:50 2017 +0300| [6fd55ac0fe139034074ca9911677d541a3cb2054] | committer: Rémi Denis-Courmont

xcb_apps: fix leaks on error

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

 modules/services_discovery/xcb_apps.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/services_discovery/xcb_apps.c b/modules/services_discovery/xcb_apps.c
index 0f0c53fe51..fcb9caa072 100644
--- a/modules/services_discovery/xcb_apps.c
+++ b/modules/services_discovery/xcb_apps.c
@@ -171,6 +171,7 @@ static int Open (vlc_object_t *obj)
 
 error:
     xcb_disconnect (p_sys->conn);
+    tdestroy (p_sys->apps, DelApp);
     free (p_sys);
     return VLC_EGENERIC;
 }



More information about the vlc-commits mailing list