On Sun, Sep 20 2020, Tobias Heider <tobias.hei...@stusta.de> wrote: > iov is allocated with calloc. I think we should free it after the imsg > is sent. > > ok?
ok jca@ > 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); > } > -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE