Marcus Meissner : wbemprox: Add missing FindClose() (Coverity).

Alexandre Julliard julliard at winehq.org
Thu Jun 20 15:31:16 CDT 2013


Module: wine
Branch: master
Commit: c60bab330c928dea18823b39afc5106fb5b00da8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c60bab330c928dea18823b39afc5106fb5b00da8

Author: Marcus Meissner <meissner at suse.de>
Date:   Thu Jun 20 10:34:57 2013 +0200

wbemprox: Add missing FindClose() (Coverity).

---

 dlls/wbemprox/builtin.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index d90165f..3cf47f8 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;
                     }




More information about the wine-cvs mailing list