From: RĂ©mi Duraffort Date: Thu, 31 Jul 2008 07:06:04 +0000 (+0200) Subject: Remove memleak in input_ItemAddInfo (check correctly vasprintf return value). X-Git-Tag: 0.9.0-test3~125 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b99613a3e91faf43a090c46176c046a5844ef820;p=vlc Remove memleak in input_ItemAddInfo (check correctly vasprintf return value). --- diff --git a/src/input/item.c b/src/input/item.c index 793ca3a3c2..27f7a09db8 100644 --- a/src/input/item.c +++ b/src/input/item.c @@ -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 );