mirror of
https://github.com/reactos/wine.git
synced 2025-02-16 19:10:35 +00:00
wbemprox: Fixed leaking dirstack (Coverity).
This commit is contained in:
parent
cf1e6a487a
commit
7bf9743041
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user