1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

ntservice: Fix potential leak

This commit is contained in:
Hugo Beauzée-Luyssen 2017-02-14 14:23:43 +01:00 committed by Jean-Baptiste Kempf
parent dc1f03424e
commit 4deac4d605

View File

@ -209,8 +209,8 @@ static int NTServiceInstall( intf_thread_t *p_intf )
{
strcat( psz_path, " " );
strcat( psz_path, psz_extra );
free( psz_extra );
}
free( psz_extra );
SC_HANDLE service =
CreateServiceA( handle, p_sys->psz_service, p_sys->psz_service,