Commit 7bf97430 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

wbemprox: Fixed leaking dirstack (Coverity).

parent cf1e6a48
......@@ -1273,11 +1273,13 @@ static enum fill_status fill_directory( struct table *table, const struct expr *
DWORD drives = GetLogicalDrives();
WIN32_FIND_DATAW data;
HANDLE handle;
struct dirstack *dirstack = alloc_dirstack(2);
struct dirstack *dirstack;
enum fill_status status = FILL_STATUS_UNFILTERED;
if (!resize_table( table, 4, sizeof(*rec) )) return FILL_STATUS_FAILED;
dirstack = alloc_dirstack(2);
for (i = 0; i < sizeof(drives); i++)
{
if (!(drives & (1 << i))) continue;
......
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