Commit 3a5100e8 authored by Rémi Duraffort's avatar Rémi Duraffort

Add missing va_end (cid #1049744)

parent cbf0d74b
......@@ -136,15 +136,15 @@ inline static void free_all_node( node *root )
/* Allocate strcat and format */
static int astrcatf( char **ppsz_dest, const char *psz_fmt_src, ... )
{
char *psz_tmp;
va_list args;
va_start( args, psz_fmt_src );
char *psz_tmp;
va_start( args, psz_fmt_src );
int i_ret = vasprintf( &psz_tmp, psz_fmt_src, args );
if( i_ret == -1 ) return -1;
va_end( args );
if( i_ret == -1 ) return -1;
int i_len = strlen( *ppsz_dest ) + strlen( psz_tmp ) + 1;
char *psz_out = realloc( *ppsz_dest, i_len );
if( !psz_out ) return -1;
......
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