wmiutils: Fix a memory leak (valgrind).
Hans Leidekker
hans at codeweavers.com
Wed Apr 30 03:21:06 CDT 2014
---
dlls/wmiutils/path.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/wmiutils/path.c b/dlls/wmiutils/path.c
index 647724f..b2b4945 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 );
--
2.0.0.rc0
More information about the wine-patches
mailing list