[vlc-commits] dbagraph: Fix potential double free

Hugo Beauzée-Luyssen git at videolan.org
Tue Feb 14 15:30:37 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Feb 14 13:42:04 2017 +0100| [9ddf14264a6965fe9bac0acdf013e3eb6c8f3db0] | committer: Hugo Beauzée-Luyssen

dbagraph: Fix potential double free

CID #1402780

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

 modules/access/dtv/bdagraph.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/dtv/bdagraph.cpp b/modules/access/dtv/bdagraph.cpp
index 14d5a96..a0cab02 100644
--- a/modules/access/dtv/bdagraph.cpp
+++ b/modules/access/dtv/bdagraph.cpp
@@ -1801,6 +1801,7 @@ HRESULT BDAGraph::SetUpTuner( REFCLSID guid_this_network_type )
             p_tuning_space->Release();
         p_tuning_space = NULL;
         SysFreeString( l.bstr_name );
+        l.bstr_name = NULL;
         msg_Dbg( p_access, "SetUpTuner: need good TS enum" );
         if( !l.p_tuning_space_enum ) break;
         msg_Dbg( p_access, "SetUpTuner: next tuning space" );



More information about the vlc-commits mailing list