A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
borland compiler use now windows thread (instead of task state), for that the new...
[simgrid.git]
/
src
/
xbt
/
xbt_main.c
diff --git
a/src/xbt/xbt_main.c
b/src/xbt/xbt_main.c
index
08c3dec
..
7ae8e49
100644
(file)
--- a/
src/xbt/xbt_main.c
+++ b/
src/xbt/xbt_main.c
@@
-31,7
+31,7
@@
xbt_init(int *argc, char **argv) {
if (xbt_initialized!=1)
return;
if (xbt_initialized!=1)
return;
- xbt_binary_name = strdup(argv[0]);
+ xbt_binary_name =
xbt_
strdup(argv[0]);
srand((unsigned int)time(NULL));
VERB0("Initialize XBT");
srand((unsigned int)time(NULL));
VERB0("Initialize XBT");
@@
-42,8
+42,11
@@
xbt_init(int *argc, char **argv) {
void
xbt_exit(){
xbt_initialized--;
void
xbt_exit(){
xbt_initialized--;
- if (xbt_initialized == 0)
- free(xbt_binary_name);
+ if (xbt_initialized == 0) {
+ free(xbt_binary_name);
+ xbt_fifo_exit();
+ xbt_dict_exit();
+ }
xbt_log_exit();
}
xbt_log_exit();
}