if( ++i >= i_property )
break;
- psz_line = strdup( ppsz_property[i] );
+ psz_line = xstrdup( ppsz_property[i] );
for( j = i+1; j < i_property; j++ )
{
psz_line = xrealloc( psz_line,
strcat( psz_line, ppsz_property[j] );
}
- if( vlm_ScheduleSetup( p_schedule, "append", psz_line ) )
+ int val = vlm_ScheduleSetup( p_schedule, "append", psz_line );
+ free( psz_line );
+ if( val )
goto error;
break;
}
if( !psz_buf || !ppsz_command )
{
- p_message = vlm_MessageNew( ( ppsz_command ) ? ppsz_command[0] : NULL,
- "Memory allocation failed for command of length %zu",
+ p_message = vlm_MessageNew( "Memory error",
+ "allocation failed for command of length %zu",
i_command_len );
goto error;
}