Commit 29ed29e6 authored by Zhao Zhili's avatar Zhao Zhili Committed by Rémi Denis-Courmont

fix memory leak in lib/audio.c

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent c355933e
......@@ -86,6 +86,8 @@ libvlc_audio_output_t *
item->psz_description = strdup( module_get_name( module, true ) );
if( unlikely(item->psz_name == NULL || item->psz_description == NULL) )
{
free( item->psz_name );
free( item->psz_description );
free( item );
goto 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