From 6c29b00af01a5570e49b2c56e36650882903a14f Mon Sep 17 00:00:00 2001 From: Steinar Gunderson Date: Mon, 27 Sep 2010 00:04:44 +0200 Subject: [PATCH] We need to free the model name. --- modules/access/sdi.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 ) { -- 2.39.2