diff --git a/src/common/execio.c b/src/common/execio.c --- a/src/common/execio.c +++ b/src/common/execio.c @@ -229,6 +229,8 @@ int execio_close(struct execio *eio) */ fprintf(stderr, "execio_close: running waitpid\n"); waitpid(eio->child, &childstatus, 0); + + free(eio); return 0; }