[vlc-commits] dtv: Fix leak on error

Hugo Beauzée-Luyssen git at videolan.org
Wed Sep 5 18:19:15 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Sep  4 16:19:15 2018 +0200| [b3d9752865aaa190a8b0f78a24470f3a0591fd70] | committer: Hugo Beauzée-Luyssen

dtv: Fix leak on error

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

 modules/access/dvb/access.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/access/dvb/access.c b/modules/access/dvb/access.c
index 683e14d7d5..88ffec28bc 100644
--- a/modules/access/dvb/access.c
+++ b/modules/access/dvb/access.c
@@ -152,7 +152,10 @@ static int Open( vlc_object_t *p_this )
         p_access->pf_block = BlockScan;
     }
     else
+    {
+        free( p_sys );
         return VLC_EGENERIC; /* let the DTV plugin do the work */
+    }
 
     /* Getting frontend info */
     if( FrontendOpen( p_this, &p_sys->dvb, p_access->psz_name ) )



More information about the vlc-commits mailing list