Commit 482d8344 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix tiny memleak.

parent 1d906a23
...@@ -605,6 +605,7 @@ int CDDAOpen( vlc_object_t *p_this ) ...@@ -605,6 +605,7 @@ int CDDAOpen( vlc_object_t *p_this )
psz_source = var_CreateGetString( p_this, "cd-audio" ); psz_source = var_CreateGetString( p_this, "cd-audio" );
if( !psz_source || !*psz_source ) if( !psz_source || !*psz_source )
{ {
free( psz_source );
/* Scan for a CD-ROM drive with a CD-DA in it. */ /* Scan for a CD-ROM drive with a CD-DA in it. */
char **ppsz_drives = char **ppsz_drives =
cdio_get_devices_with_cap( NULL, CDIO_FS_AUDIO, false ); cdio_get_devices_with_cap( NULL, CDIO_FS_AUDIO, false );
......
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