Commit 4706fc1b authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

param: Plug leak spotted by lsan, take 2

parent f9a802fa
......@@ -248,8 +248,6 @@ mcf_param_show(struct cli *cli, const char * const *av, void *priv)
struct vsb *vsb;
const char *show = NULL;
vsb = VSB_new_auto();
AN(vsb);
(void)priv;
for (n = 2; av[n] != NULL; n++) {
......@@ -270,6 +268,9 @@ mcf_param_show(struct cli *cli, const char * const *av, void *priv)
lfmt = 1;
}
vsb = VSB_new_auto();
AN(vsb);
n = 0;
VTAILQ_FOREACH(pl, &phead, list) {
pp = pl->spec;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment