Commit b99613a3 authored by Rémi Duraffort's avatar Rémi Duraffort

Remove memleak in input_ItemAddInfo (check correctly vasprintf return value).

parent ee24b320
......@@ -295,7 +295,7 @@ int input_ItemAddInfo( input_item_t *p_i,
}
va_start( args, psz_format );
if( vasprintf( &p_info->psz_value, psz_format, args) )
if( vasprintf( &p_info->psz_value, psz_format, args) == -1 )
p_info->psz_value = NULL;
va_end( args );
......
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