Hans Leidekker : wmiutils: Fix a memory leak (valgrind).
Alexandre Julliard
julliard at winehq.org
Wed Apr 30 13:32:52 CDT 2014
Module: wine
Branch: master
Commit: 582c5fde998096b4726407356fc8064ea4e382c9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=582c5fde998096b4726407356fc8064ea4e382c9
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Apr 30 10:21:06 2014 +0200
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 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 );
More information about the wine-cvs
mailing list