From 6fc06defd55e7d00f620d40e52da47bc4c1b3a96 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Thu, 14 Jun 2018 16:50:18 -0600 Subject: * More changes to make Valgrind happy. --- imap/src/c-client/imap4r1.c | 1 + imap/src/c-client/mail.c | 1 + imap/src/c-client/tcp.h | 1 + 3 files changed, 3 insertions(+) (limited to 'imap/src/c-client') diff --git a/imap/src/c-client/imap4r1.c b/imap/src/c-client/imap4r1.c index 343e29bf..b20453ee 100644 --- a/imap/src/c-client/imap4r1.c +++ b/imap/src/c-client/imap4r1.c @@ -2951,6 +2951,7 @@ long imap_setid (MAILSTREAM *stream, IDLIST *idlist) if (imap_OK (stream,reply = imap_send (stream,"ID",args))) ret = LONGT; else mm_log (reply->text,ERROR); + if(qroot) fs_give((void **) &qroot); } else mm_log("Empty or malformed ID list", ERROR); } else mm_log ("ID capability not available on this IMAP server",ERROR); diff --git a/imap/src/c-client/mail.c b/imap/src/c-client/mail.c index b18f7732..3dd45eb5 100644 --- a/imap/src/c-client/mail.c +++ b/imap/src/c-client/mail.c @@ -6407,4 +6407,5 @@ char *net_localhost (NETSTREAM *stream) void free_c_client_module_globals(void) { env_end(); + tcp_end(); } diff --git a/imap/src/c-client/tcp.h b/imap/src/c-client/tcp.h index b9f095a8..ecf39bef 100644 --- a/imap/src/c-client/tcp.h +++ b/imap/src/c-client/tcp.h @@ -57,3 +57,4 @@ char *tcp_serverhost (void); long tcp_serverport (void); char *tcp_canonical (char *name); long tcp_isclienthost (char *host); +void tcp_end(void); -- cgit v1.2.3-54-g00ecf