Commit 250591e1 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix potential memleak (CID 227)

parent 0cd4a19b
...@@ -555,7 +555,11 @@ static void MacroDo( httpd_file_sys_t *p_args, ...@@ -555,7 +555,11 @@ static void MacroDo( httpd_file_sys_t *p_args,
if( p_intf->p_sys->p_vlm == NULL ) if( p_intf->p_sys->p_vlm == NULL )
p_intf->p_sys->p_vlm = vlm_New( p_intf ); p_intf->p_sys->p_vlm = vlm_New( p_intf );
if( p_intf->p_sys->p_vlm == NULL ) break; if( p_intf->p_sys->p_vlm == NULL )
{
free( psz );
break;
}
ExtractURIValue( p_request, "name", name, 512 ); ExtractURIValue( p_request, "name", name, 512 );
if( StrToMacroType( control ) == MVLC_VLM_NEW ) if( StrToMacroType( control ) == MVLC_VLM_NEW )
......
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