From c60bab330c928dea18823b39afc5106fb5b00da8 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 20 Jun 2013 10:34:57 +0200 Subject: [PATCH] wbemprox: Add missing FindClose() (Coverity). --- dlls/wbemprox/builtin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index d90165f9e2b..3cf47f8d8ff 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -1302,6 +1302,7 @@ static enum fill_status fill_directory( struct table *table, const struct expr * { if (!resize_table( table, row + 1, sizeof(*rec) )) { + FindClose( handle ); status = FILL_STATUS_FAILED; goto done; } @@ -1313,6 +1314,7 @@ static enum fill_status fill_directory( struct table *table, const struct expr * if (!(push_dir( dirstack, new_path, len ))) { heap_free( new_path ); + FindClose( handle ); status = FILL_STATUS_FAILED; goto done; }