]> git.sesse.net Git - vlc/blobdiff - modules/access/sdi.cpp
Fix a missing path for p_config->Release().
[vlc] / modules / access / sdi.cpp
index b9329e84fccd2d5e64abc254dbd51fb39fd8115e..54b3ed230a21fd800871ccfb6458d54a4c9a4779 100644 (file)
@@ -306,11 +306,13 @@ static int Open( vlc_object_t *p_this )
     if( result != S_OK )
     {
         msg_Err( p_demux, "Could not get model name" );
+        free( psz_model_name );
         Close( p_this );
         return VLC_EGENERIC;
     }
 
     msg_Dbg( p_demux, "Opened DeckLink PCI card %d (%s)", i_card_index, psz_model_name );
+    free( psz_model_name );
 
     if( p_sys->p_card->QueryInterface( IID_IDeckLinkInput, (void**)&p_sys->p_input) != S_OK )
     {
@@ -380,6 +382,7 @@ static int Open( vlc_object_t *p_this )
         {
             msg_Err( p_demux, "Invalid --sdi-audio-connection specified; choose one of " \
                               "embedded, aesebu, or analog." );
+            p_config->Release();
             Close( p_this );
             return VLC_EGENERIC;
         }