wbemprox: Fixed leaking dirstack (Coverity).

This commit is contained in:
Marcus Meissner 2013-06-20 22:44:00 +02:00 committed by Alexandre Julliard
parent cf1e6a487a
commit 7bf9743041

View File

@ -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;