Hans Leidekker : wmiutils: Fix a memory leak (valgrind).
Module: wine Branch: master Commit: 582c5fde998096b4726407356fc8064ea4e382c9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=582c5fde998096b4726407356f... Author: Hans Leidekker <hans(a)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 );
participants (1)
-
Alexandre Julliard