diff options
| author | agc <agc@NetBSD.org> | 2009-11-04 15:37:39 +0000 |
|---|---|---|
| committer | agc <agc@NetBSD.org> | 2009-11-04 15:37:39 +0000 |
| commit | ac9efee5f2daa792aa32af6eada5c548d8157b5c (patch) | |
| tree | 90c600555fe1d7a11dacda5bdf4be4aac042ef05 /libexec/httpd | |
| parent | ab72032a6cc531778f8d5103447eca7ee0ba5ad3 (diff) | |
Plug a memory leak for ssl-protected formatted output
Diffstat (limited to 'libexec/httpd')
| -rw-r--r-- | libexec/httpd/ssl-bozo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/httpd/ssl-bozo.c b/libexec/httpd/ssl-bozo.c index 98376f9f6a4..b4371dabe30 100644 --- a/libexec/httpd/ssl-bozo.c +++ b/libexec/httpd/ssl-bozo.c @@ -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 @@ ssl_printf(const char * fmt, ...) if ((nbytes = vasprintf(&buf, fmt, ap)) != -1) SSL_write(bozossl, buf, nbytes); va_end(ap); + free(buf); return nbytes; } |
