Commit 87a7dfdf authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Dridi Boukelmoune

Polish

parent de72059f
...@@ -462,8 +462,8 @@ mgt_reap_child(void) ...@@ -462,8 +462,8 @@ mgt_reap_child(void)
if (ev_poker != NULL) { if (ev_poker != NULL) {
VEV_Stop(mgt_evb, ev_poker); VEV_Stop(mgt_evb, ev_poker);
free(ev_poker); free(ev_poker);
ev_poker = NULL;
} }
ev_poker = NULL;
/* Stop the listener */ /* Stop the listener */
if (ev_listen != NULL) { if (ev_listen != NULL) {
......
...@@ -293,8 +293,7 @@ clean_frame(struct frame **f) ...@@ -293,8 +293,7 @@ clean_frame(struct frame **f)
if ((*f)->type == TYPE_GOAWAY) if ((*f)->type == TYPE_GOAWAY)
free((*f)->md.goaway.debug); free((*f)->md.goaway.debug);
free((*f)->data); free((*f)->data);
free(*f); FREE_OBJ(*f);
*f = NULL;
} }
static void static void
......
...@@ -396,16 +396,16 @@ process_delete(struct process *p) ...@@ -396,16 +396,16 @@ process_delete(struct process *p)
free(p->out); free(p->out);
free(p->err); free(p->err);
for (i = 0; i < p->nlin; i++)
free(p->vram[i]);
free(p->vram);
/* /*
* We do not delete the directory, it may contain useful stdout * We do not delete the directory, it may contain useful stdout
* and stderr files. They will be deleted on account of belonging * and stderr files. They will be deleted on account of belonging
* to the test's tmpdir. * to the test's tmpdir.
*/ */
for (i = 0; i < p->nlin; i++)
free(p->vram[i]);
free(p->vram);
/* XXX: MEMLEAK (?) */ /* XXX: MEMLEAK (?) */
FREE_OBJ(p); FREE_OBJ(p);
} }
......
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