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