From 582c5fde998096b4726407356fc8064ea4e382c9 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 30 Apr 2014 10:21:06 +0200 Subject: [PATCH] wmiutils: Fix a memory leak (valgrind). --- dlls/wmiutils/path.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/wmiutils/path.c b/dlls/wmiutils/path.c index 647724f13c7..b2b4945aca4 100644 --- a/dlls/wmiutils/path.c +++ b/dlls/wmiutils/path.c @@ -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 );