diff options
author | 2020-09-21 09:42:07 +0000 | |
---|---|---|
committer | 2020-09-21 09:42:07 +0000 | |
commit | 78a658caed43db0e7ea76dcfe2c5bcf6ab10b3e8 (patch) | |
tree | 8e0233c950046a0fe8f700f8a357323c2404c839 | |
parent | In ssl.h rev. 1.174 to 1.176, tb@ added some stubs related to 0-RTT data. (diff) | |
download | wireguard-openbsd-78a658caed43db0e7ea76dcfe2c5bcf6ab10b3e8.tar.xz wireguard-openbsd-78a658caed43db0e7ea76dcfe2c5bcf6ab10b3e8.zip |
Fix memory leak in "iov".
ok jca@
-rw-r--r-- | usr.sbin/httpd/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/httpd/config.c b/usr.sbin/httpd/config.c index 0db7b3d43fe..804d58ea728 100644 --- a/usr.sbin/httpd/config.c +++ b/usr.sbin/httpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.60 2020/08/26 06:50:20 florian Exp $ */ +/* $OpenBSD: config.c,v 1.61 2020/09/21 09:42:07 tobhe Exp $ */ /* * Copyright (c) 2011 - 2015 Reyk Floeter <reyk@openbsd.org> @@ -385,8 +385,10 @@ config_setserver_fcgiparams(struct httpd *env, struct server *srv) if (proc_composev(ps, PROC_SERVER, IMSG_CFG_FCGI, iov, c) != 0) { log_warn("%s: failed to compose IMSG_CFG_FCGI imsg for " "`%s'", __func__, srv_conf->name); + free(iov); return (-1); } + free(iov); return (0); } |