From b0e94e582bcc7cf64a813539ac259aa7f6d8146b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
Date: Thu, 27 Feb 2020 19:56:40 +0100
Subject: [PATCH] * src/netrc.c (netrc_cleanup): Only compile for DEBUG_MALLOC
 or TESTING

---
 src/netrc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/netrc.c b/src/netrc.c
index c48327ef..6e6e9689 100644
--- a/src/netrc.c
+++ b/src/netrc.c
@@ -64,12 +64,14 @@ static void free_netrc(acc_t *);
 static acc_t *netrc_list;
 static int processed_netrc;
 
+#if defined DEBUG_MALLOC || defined TESTING
 void
 netrc_cleanup(void)
 {
   free_netrc (netrc_list);
   processed_netrc = 0;
 }
+#endif
 
 /* Return the correct user and password, given the host, user (as
    given in the URL), and password (as given in the URL).  May return