=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: iphlpapi: Fix FILE leak in get_ipv6_addr_scope_table() (Coverity).

Alexandre Julliard julliard at winehq.org
Tue Sep 11 14:53:19 CDT 2018


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue Sep 11 13:01:23 2018 +0200

iphlpapi: Fix FILE leak in get_ipv6_addr_scope_table() (Coverity).

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/iphlpapi/ipstats.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index 994e1fe..84d28ee 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -2686,6 +2686,8 @@ static struct ipv6_addr_scope *get_ipv6_addr_scope_table(unsigned int *size)
 
             entry->scope = htons(scope);
         }
+
+        fclose(fp);
     }
 #else
     FIXME( "not implemented\n" );




More information about the wine-cvs mailing list