Commit 313c62d2 authored by Rémi Duraffort's avatar Rémi Duraffort

More memleaks (pointed out by Jpeg)

parent 482d8344
...@@ -597,6 +597,7 @@ int CDDAOpen( vlc_object_t *p_this ) ...@@ -597,6 +597,7 @@ int CDDAOpen( vlc_object_t *p_this )
if( !psz_source || !*psz_source ) if( !psz_source || !*psz_source )
{ {
free( psz_source );
/* No device/track given. Continue only when this plugin was /* No device/track given. Continue only when this plugin was
selected */ selected */
if( !p_this->b_force ) if( !p_this->b_force )
...@@ -804,6 +805,7 @@ int CDDAOpen( vlc_object_t *p_this ) ...@@ -804,6 +805,7 @@ int CDDAOpen( vlc_object_t *p_this )
var_Create( p_access, MODULE_STRING "-caching", var_Create( p_access, MODULE_STRING "-caching",
VLC_VAR_INTEGER|VLC_VAR_DOINHERIT ); VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
vlc_object_release( p_cdda->p_input ); vlc_object_release( p_cdda->p_input );
free( psz_source );
return VLC_SUCCESS; return VLC_SUCCESS;
error: error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment