From: Michael Brown Date: Mon, 13 Oct 2008 04:30:04 +0000 (+0100) Subject: [monojob] Release reference on completed job X-Git-Tag: v0.9.6~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07e8f18f33eba7aef64d7d2cfafc6738f4096b5a;p=thirdparty%2Fipxe.git [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 3c023c402..657bfd7ad 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 {