Commit 90ab0701 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix memory leak (CID 95)

parent 13a1c6b8
......@@ -968,17 +968,12 @@ vlm_media_sys_t *vlm_MediaSearch( vlm_t *vlm, const char *psz_name )
*****************************************************************************/
static vlm_schedule_sys_t *vlm_ScheduleNew( vlm_t *vlm, const char *psz_name )
{
vlm_schedule_sys_t *p_sched = malloc( sizeof( vlm_schedule_sys_t ) );
if( !p_sched )
{
if( !psz_name )
return NULL;
}
if( !psz_name )
{
vlm_schedule_sys_t *p_sched = malloc( sizeof( vlm_schedule_sys_t ) );
if( !p_sched )
return NULL;
}
p_sched->psz_name = strdup( psz_name );
p_sched->b_enabled = false;
......
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