static void workflow_store_error( workflow_type * workflow , const config_error_type * error) { if (workflow->last_error) config_error_free( workflow->last_error ); if (error) workflow->last_error = config_error_alloc_copy( error ); else workflow->last_error = NULL; }
void workflow_free( workflow_type * workflow ) { free( workflow->src_file ); vector_free( workflow->cmd_list ); vector_free( workflow->stack ); if (workflow->last_error) config_error_free( workflow->last_error ); free( workflow ); }
void config_content_free( config_content_type * content ) { vector_free( content->nodes ); vector_free( content->path_elm_stack ); vector_free( content->path_elm_storage ); hash_free( content->items ); config_error_free( content->parse_errors ); subst_list_free( content->define_list ); util_safe_free( content->config_file ); util_safe_free( content->abs_path ); set_free( content->parsed_files ); if (content->invoke_path != NULL) config_root_path_free( content->invoke_path ); free( content ); }