[PATCH] wbemprox: add missing FindClose() (Coverity)

Marcus Meissner meissner at suse.de
Thu Jun 20 03:34:57 CDT 2013


Split previous larger submission.

1030110 Resource leak
	added missing FindClose

Ciao, Marcus
---
 dlls/wbemprox/builtin.c | 2 ++
 1 file changed, 2 insertions(+)

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;
                     }
-- 
1.8.1.4




More information about the wine-patches mailing list