mirror of https://github.com/ipxe/ipxe.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.pull/1/head
parent
831e4cfc27
commit
07e8f18f33
|
@ -91,6 +91,7 @@ int monojob_wait ( const char *string ) {
|
||||||
rc = monojob_rc;
|
rc = monojob_rc;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
job_done ( &monojob, rc );
|
||||||
if ( rc ) {
|
if ( rc ) {
|
||||||
printf ( " %s\n", strerror ( rc ) );
|
printf ( " %s\n", strerror ( rc ) );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue