From 5a141065c42bcfa08dfa116b2968dbf0d072891c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Fri, 1 May 2020 17:41:35 +0200 Subject: [PATCH] * src/netrc.c (free_netrc): Only compile if DEBUG_MALLOC or TESTING is defined --- src/netrc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/netrc.c b/src/netrc.c index 6e6e9689..a9232ed4 100644 --- a/src/netrc.c +++ b/src/netrc.c @@ -59,14 +59,15 @@ typedef struct _acc_t static acc_t *parse_netrc (const char *); static acc_t *parse_netrc_fp (const char *, FILE *); -static void free_netrc(acc_t *); static acc_t *netrc_list; static int processed_netrc; #if defined DEBUG_MALLOC || defined TESTING +static void free_netrc(acc_t *); + void -netrc_cleanup(void) +netrc_cleanup (void) { free_netrc (netrc_list); processed_netrc = 0; @@ -461,6 +462,7 @@ parse_netrc (const char *path) return acc; } +#if defined DEBUG_MALLOC || defined TESTING /* Free a netrc list. */ static void free_netrc(acc_t *l) @@ -477,6 +479,7 @@ free_netrc(acc_t *l) l = t; } } +#endif #ifdef STANDALONE #include