From 1cb35fad9924bfa1ae33a6e6aff2e6c5d5b5f454 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 30 Nov 2014 11:14:49 +0100 Subject: worker data (glib-specific) is stored in worker structures --- src/coordinator.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/coordinator.c') diff --git a/src/coordinator.c b/src/coordinator.c index 6ac9a6e..69027ba 100644 --- a/src/coordinator.c +++ b/src/coordinator.c @@ -290,6 +290,9 @@ static void free_workers( ) free( w->name ); free( w->command ); + if( w->execution_data ) { + free( w->execution_data ); + } } } @@ -323,6 +326,7 @@ int coordinator_add_worker( const char *name, worker_execution_mode_t mode, cons } else { w->mode = WORKER_EXECUTION_DISABLED; } + w->execution_data = NULL; nof_workers++; -- cgit v1.2.3-54-g00ecf