From 07e8f18f33eba7aef64d7d2cfafc6738f4096b5a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 13 Oct 2008 05:30:04 +0100 Subject: [PATCH] [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. --- src/core/monojob.c | 1 + 1 file changed, 1 insertion(+) 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 {