Permalink
Browse files

Rearrange to avoid a tiny leak

  • Loading branch information...
fgsch committed Oct 9, 2018
1 parent 827cd22 commit 42b8179fd1bf44439094d7c09a2578baa13be1a0
Showing with 3 additions and 2 deletions.
  1. +3 −2 bin/varnishd/mgt/mgt_param.c
@@ -353,8 +353,6 @@ mcf_param_show_json(struct cli *cli, const char * const *av, void *priv)
struct vsb *vsb, *def;
const char *show = NULL;
vsb = VSB_new_auto();
def = VSB_new_auto();
(void)priv;
for (int i = 2; av[i] != NULL; i++) {
@@ -372,6 +370,9 @@ mcf_param_show_json(struct cli *cli, const char * const *av, void *priv)
show = av[i];
}
vsb = VSB_new_auto();
def = VSB_new_auto();
n = 0;
VCLI_JSON_begin(cli, 2, av);
VCLI_Out(cli, ",\n");

0 comments on commit 42b8179

Please sign in to comment.