Skip to content

Commit

Permalink
[monojob] Release reference on completed job
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Michael Brown committed Oct 13, 2008
1 parent 831e4cf commit 07e8f18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/monojob.c
Expand Up @@ -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 {
Expand Down

0 comments on commit 07e8f18

Please sign in to comment.