Commit 13490899 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wbemprox: Fix some memory leaks (Coverity).

parent 597c5f9c
......@@ -1586,6 +1586,8 @@ static enum fill_status fill_datafile( struct table *table, const struct expr *c
for (;;)
{
heap_free( glob );
heap_free( path );
path = pop_dir( dirstack, &len );
if (!(glob = build_glob( root[0], path, len )))
{
......@@ -1635,8 +1637,6 @@ static enum fill_status fill_datafile( struct table *table, const struct expr *c
FindClose( handle );
}
if (!peek_dir( dirstack )) break;
heap_free( glob );
heap_free( path );
}
}
......@@ -1678,6 +1678,8 @@ static enum fill_status fill_directory( struct table *table, const struct expr *
for (;;)
{
heap_free( glob );
heap_free( path );
path = pop_dir( dirstack, &len );
if (!(glob = build_glob( root[0], path, len )))
{
......@@ -1728,8 +1730,6 @@ static enum fill_status fill_directory( struct table *table, const struct expr *
FindClose( handle );
}
if (!peek_dir( dirstack )) break;
heap_free( glob );
heap_free( path );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment