From: Steinar Gunderson Date: Sun, 26 Sep 2010 22:04:44 +0000 (+0200) Subject: We need to free the model name. X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=6c29b00af01a5570e49b2c56e36650882903a14f We need to free the model name. --- diff --git a/modules/access/sdi.cpp b/modules/access/sdi.cpp index b9329e84fc..f2b99cfdaf 100644 --- a/modules/access/sdi.cpp +++ b/modules/access/sdi.cpp @@ -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 ) {