summaryrefslogtreecommitdiff
path: root/src/coordinator.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-11-30 11:14:49 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2014-11-30 11:14:49 +0100
commit1cb35fad9924bfa1ae33a6e6aff2e6c5d5b5f454 (patch)
tree73436ccf68e99d06eecac75136a0b1bb83a83291 /src/coordinator.c
parent7f10a53e805f26f3c6e0cceea5569b40a43af275 (diff)
downloadbiruda-1cb35fad9924bfa1ae33a6e6aff2e6c5d5b5f454.tar.gz
biruda-1cb35fad9924bfa1ae33a6e6aff2e6c5d5b5f454.tar.bz2
worker data (glib-specific) is stored in worker structures
Diffstat (limited to 'src/coordinator.c')
-rw-r--r--src/coordinator.c4
1 files changed, 4 insertions, 0 deletions
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++;