maxmin_system = lmm_system_new();
}
+static char* path_name = NULL;
FILE *surf_fopen(const char *name, const char *mode)
{
int i;
char* path = NULL;
FILE *file = NULL;
- static char* path_name = NULL;
xbt_assert0(surf_path,"surf_init has to be called before using surf_fopen");
if(!path_name) path_name=xbt_new0(char,strlen(name)+1);
if (resource_list)
xbt_dynar_free(&resource_list);
+ if(surf_path)
+ xbt_dynar_free(&surf_path);
+
tmgr_finalize();
surf_parse_lex_destroy();
+ if(path_name) {
+ xbt_free(path_name);
+ path_name = NULL;
+ }
}
double surf_solve(void)
}
void surf_parse_close(void) {
+ if(surf_input_buffer_stack)
+ xbt_dynar_free(&surf_input_buffer_stack);
+ if(surf_file_to_parse_stack)
+ xbt_dynar_free(&surf_file_to_parse_stack);
+
surf_parse__delete_buffer(surf_input_buffer);
fclose(surf_file_to_parse);
}