Commit 69d88103 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlm: memory leak

parent 78fa4a93
......@@ -602,7 +602,7 @@ static int ExecuteScheduleProperty( vlm_t *p_vlm, vlm_schedule_sys_t *p_schedule
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,
......@@ -611,7 +611,9 @@ static int ExecuteScheduleProperty( vlm_t *p_vlm, vlm_schedule_sys_t *p_schedule
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;
}
......
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