Module Name: src
Committed By: agc
Date: Wed Nov 4 15:37:39 UTC 2009
Modified Files:
src/libexec/httpd: ssl-bozo.c
Log Message:
Plug a memory leak for ssl-protected formatted output
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/libexec/httpd/ssl-bozo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/httpd/ssl-bozo.c
diff -u src/libexec/httpd/ssl-bozo.c:1.5 src/libexec/httpd/ssl-bozo.c:1.6
--- src/libexec/httpd/ssl-bozo.c:1.5 Sat Apr 18 07:28:24 2009
+++ src/libexec/httpd/ssl-bozo.c Wed Nov 4 15:37:39 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ssl-bozo.c,v 1.5 2009/04/18 07:28:24 mrg Exp $ */
+/* $NetBSD: ssl-bozo.c,v 1.6 2009/11/04 15:37:39 agc Exp $ */
/* $eterna: ssl-bozo.c,v 1.9 2008/11/06 05:08:11 mrg Exp $ */
@@ -122,6 +122,7 @@
if ((nbytes = vasprintf(&buf, fmt, ap)) != -1)
SSL_write(bozossl, buf, nbytes);
va_end(ap);
+ free(buf);
return nbytes;
}