save works

This commit is contained in:
Rongsong Shen 2026-03-05 16:03:37 +08:00
parent 3f74f14687
commit 47fc32b02c
6 changed files with 155 additions and 25 deletions

View file

@ -74,11 +74,16 @@ static void worker_destroy(meta_obj_t* obj)
FREEUP(w->host.attrs);
}
if (w->host.dispatch_window_config != NULL) { }
if (w->host.dispatch_window_config != NULL) {
free_timewindow_config(w->host.dispatch_window_config);
w->host.dispatch_window_config = NULL;
}
if (w->host.thresholds != NULL) { }
if (w->host.resvals_to_sched != NULL) { }
if (w->host.thresholds != NULL) {
free_resource_thresholds(w->host.thresholds, w->host.nthresholds);
w->host.thresholds = NULL;
w->host.nthresholds = 0;
}
zarray_fini(&(w->host.resvals));