File 0467-inet_gethost.c-code_checker-fix-potential-memory-lea.patch of Package erlang

From b55062101c3f1aa2cdc277fffc9fe95b6447e736 Mon Sep 17 00:00:00 2001
From: Kjell Winblad <kjellwinblad@gmail.com>
Date: Wed, 17 Mar 2021 15:39:54 +0100
Subject: [PATCH 07/10] inet_gethost.c: code_checker fix potential memory leak
 warning

---
 erts/etc/common/inet_gethost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/erts/etc/common/inet_gethost.c b/erts/etc/common/inet_gethost.c
index 0e4ec402ab..54825219b4 100644
--- a/erts/etc/common/inet_gethost.c
+++ b/erts/etc/common/inet_gethost.c
@@ -1980,10 +1980,10 @@ static int worker_loop(void)
     }
     close_mesq(readfrom);
     close_mesq(writeto);
+#endif
     if (reply) {
 	FREE(reply);
     }
-#endif
     return 1;
 }
 
-- 
2.26.2

openSUSE Build Service is sponsored by