Commit 582c5fde authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wmiutils: Fix a memory leak (valgrind).

parent ed1f005e
......@@ -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 );
......
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