diff options
author | Michael Brown | 2008-10-13 06:30:04 +0200 |
---|---|---|
committer | Michael Brown | 2008-10-13 06:34:08 +0200 |
commit | 07e8f18f33eba7aef64d7d2cfafc6738f4096b5a (patch) | |
tree | 02f6f3516023b53c1670473cce7017601ce1b41c /src/core | |
parent | [umalloc] Formalise the user memory allocation API (diff) | |
download | ipxe-07e8f18f33eba7aef64d7d2cfafc6738f4096b5a.tar.gz ipxe-07e8f18f33eba7aef64d7d2cfafc6738f4096b5a.tar.xz ipxe-07e8f18f33eba7aef64d7d2cfafc6738f4096b5a.zip |
[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.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/monojob.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |