-/*
- * jed_simgrid_platform.c
- *
- * Created on: Nov 30, 2010
- * Author: sascha
- */
+/* Copyright (c) 2010-2014. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
#include <stdlib.h>
#include <string.h>
xbt_dynar_foreach(container->container_children, iter, child_container) {
jed_free_container(child_container);
}
+ xbt_dynar_free(&container->container_children);
}
- free(container->name);
- free(container);
+ xbt_free(container->name);
+ xbt_free(container);
}
-void jed_simgrid_create_container(jed_simgrid_container_t *container, char *name) {
+void jed_simgrid_create_container(jed_simgrid_container_t *container,
+ const char *name)
+{
xbt_assert( name != NULL );
*container = xbt_new0(s_jed_simgrid_container_t,1);
// printf("subset parent >>> %s\n", parent->name);
add_subsets_to(subset_list, hostgroup, parent);
}
-
+ xbt_dynar_free(&hostgroup);
}
xbt_dict_free(&parent2hostgroup);
jed_free_container(jedule->root_container);
xbt_dict_free(&jedule->jedule_meta_info);
- free(jedule);
+ xbt_free(jedule);
xbt_dict_free(&host2_simgrid_parent_container);
xbt_dict_free(&container_name2container);