# HG changeset patch # User Binki # Date 2009-04-18 23:11:46 # Node ID 4f90c21755ee11158d85aa8b3422c0f8bbb905d9 # Parent 72489034987cbb4476bfb35680a9dae05d254341 fixed memory leak in execio 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; }