wmiutils: Fix a memory leak (valgrind).
This commit is contained in:
parent
ed1f005e14
commit
582c5fde99
@ -313,8 +313,11 @@ static void init_path( struct path *path )
|
|||||||
|
|
||||||
static void clear_path( struct path *path )
|
static void clear_path( struct path *path )
|
||||||
{
|
{
|
||||||
|
unsigned int i;
|
||||||
|
|
||||||
heap_free( path->text );
|
heap_free( path->text );
|
||||||
heap_free( path->server );
|
heap_free( path->server );
|
||||||
|
for (i = 0; i < path->num_namespaces; i++) heap_free( path->namespaces[i] );
|
||||||
heap_free( path->namespaces );
|
heap_free( path->namespaces );
|
||||||
heap_free( path->len_namespaces );
|
heap_free( path->len_namespaces );
|
||||||
heap_free( path->class );
|
heap_free( path->class );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user