iov is allocated with calloc.  I think we should free it after the imsg
is sent.

ok?

Index: config.c
===================================================================
RCS file: /cvs/src/usr.sbin/httpd/config.c,v
retrieving revision 1.57
diff -u -p -r1.57 config.c
--- config.c    8 May 2019 19:57:45 -0000       1.57
+++ config.c    20 Sep 2020 13:34:07 -0000
@@ -387,8 +387,10 @@ config_setserver_fcgiparams(struct httpd
        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);
 }

Reply via email to