From 8190291fb0b0e93fe3d80efdff831d50a8ef9671 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 24 Dec 2014 17:17:13 -0200 Subject: [PATCH] Autotest: don't leak a socket every call to QtNetworkSettings::hasIPv6 Change-Id: I87e31945052233cee17460ee6f59c02ec416b27b Reviewed-by: Richard J. Moore --- tests/auto/network-settings.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/network-settings.h b/tests/auto/network-settings.h index e06744b44e..e46189dd7d 100644 --- a/tests/auto/network-settings.h +++ b/tests/auto/network-settings.h @@ -116,6 +116,7 @@ public: return false; } } + ::close(s); #endif return true; }