Commit 8dc2c568 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Derk-Jan Hartman

Fix NULL dereference (CID#149)

This bug can never happen, as we never call with pppsz_longname == NULL
at the moment.
(cherry picked from commit 2d9ea592)
parent 1e226485
......@@ -770,7 +770,8 @@ char ** __module_GetModulesNamesForCapability( vlc_object_t *p_this,
if( !psz_ret || ( pppsz_longname && *pppsz_longname == NULL ) )
{
free( psz_ret );
free( *pppsz_longname );
if( pppsz_longname )
free( *pppsz_longname );
*pppsz_longname = NULL;
vlc_list_release( p_list );
return NULL;
......
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