wmiutils: Fix a memory leak (valgrind).

This commit is contained in:
Hans Leidekker 2014-04-30 10:21:06 +02:00 committed by Alexandre Julliard
parent ed1f005e14
commit 582c5fde99
1 changed files with 3 additions and 0 deletions

View File

@ -313,8 +313,11 @@ static void init_path( struct path *path )
static void clear_path( struct path *path )
{
unsigned int i;
heap_free( path->text );
heap_free( path->server );
for (i = 0; i < path->num_namespaces; i++) heap_free( path->namespaces[i] );
heap_free( path->namespaces );
heap_free( path->len_namespaces );
heap_free( path->class );