diff options
| author | Sam Varshavchik | 2018-07-23 21:20:55 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2018-07-28 15:13:48 -0400 | 
| commit | dbe3a66c244380067a1f22cd3368b1233fac78df (patch) | |
| tree | 0f6925cc3b1f457cc6a9ef56ed2c8dd79f755626 | |
| parent | a925caf69bd414999369b855fe47a39e8e41affb (diff) | |
| download | courier-libs-dbe3a66c244380067a1f22cd3368b1233fac78df.tar.bz2 | |
Fix memory leak, and a compilation warning.
| -rw-r--r-- | maildir/maildirwatch.c | 2 | ||||
| -rw-r--r-- | tcpd/tlsclient.c | 1 | 
2 files changed, 2 insertions, 1 deletions
| diff --git a/maildir/maildirwatch.c b/maildir/maildirwatch.c index d0adc5d..36b85ab 100644 --- a/maildir/maildirwatch.c +++ b/maildir/maildirwatch.c @@ -28,7 +28,7 @@ static void alarm_handler(int signum)  	static const char msg[]=  		"Timeout initializing the FAM library. Your FAM library is broken.\n"; -	write(2, msg, sizeof(msg)-1); +	(void)write(2, msg, sizeof(msg)-1);  	kill(getpid(), SIGKILL);  }  #endif diff --git a/tcpd/tlsclient.c b/tcpd/tlsclient.c index e0c76ef..7efa574 100644 --- a/tcpd/tlsclient.c +++ b/tcpd/tlsclient.c @@ -390,6 +390,7 @@ static int do_couriertls_start(char **args, struct couriertls_info *cinfo)  	close(statuspipe_fd[1]);  	close(x509_fd[1]); +	free(argvec);  	while ((p2=wait(&waitstat)) != p)  		if (p2 < 0 && errno == ECHILD) | 
