From: Michael Brown Date: Mon, 13 Oct 2008 04:30:04 +0000 (+0100) Subject: [monojob] Release reference on completed job X-Git-Url: http://git.etherboot.org/people/sha0/gpxe.git/commitdiff_plain/07e8f18f33eba7aef64d7d2cfafc6738f4096b5a [monojob] Release reference on completed job monojob_wait() was holding a reference to the completed job, meaning that various objects would not be freed until the next job was plugged in to the monojob interface. --- diff --git a/src/core/monojob.c b/src/core/monojob.c index 3c023c40..657bfd7a 100644 --- a/src/core/monojob.c +++ b/src/core/monojob.c @@ -91,6 +91,7 @@ int monojob_wait ( const char *string ) { rc = monojob_rc; done: + job_done ( &monojob, rc ); if ( rc ) { printf ( " %s\n", strerror ( rc ) ); } else {