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
Free those variables after the end of the cluster tag.
[simgrid.git]
/
src
/
surf
/
trace_mgr.c
diff --git
a/src/surf/trace_mgr.c
b/src/surf/trace_mgr.c
index
03827df
..
6a4d8bd
100644
(file)
--- a/
src/surf/trace_mgr.c
+++ b/
src/surf/trace_mgr.c
@@
-82,8
+82,8
@@
tmgr_trace_t tmgr_trace_new_from_string(const char *id, const char *input,
}
xbt_dynar_push(trace->event_list, &event);
last_event =
}
xbt_dynar_push(trace->event_list, &event);
last_event =
- xbt_dynar_get_ptr(trace->event_list,
- xbt_dynar_length(trace->event_list) - 1);
+
xbt_dynar_get_ptr(trace->event_list,
+
xbt_dynar_length(trace->event_list) - 1);
}
if (last_event)
last_event->delta = periodicity;
}
if (last_event)
last_event->delta = periodicity;
@@
-100,7
+100,7
@@
tmgr_trace_t tmgr_trace_new_from_string(const char *id, const char *input,
tmgr_trace_t tmgr_trace_new(const char *filename)
{
tmgr_trace_t tmgr_trace_new(const char *filename)
{
-
char *tstr = NULL;
+ char *tstr = NULL;
FILE *f = NULL;
tmgr_trace_t trace = NULL;
FILE *f = NULL;
tmgr_trace_t trace = NULL;
@@
-116,8
+116,8
@@
tmgr_trace_t tmgr_trace_new(const char *filename)
}
f = surf_fopen(filename, "r");
}
f = surf_fopen(filename, "r");
- xbt_assert2(f
!=
NULL, "Cannot open file '%s' (path=%s)", filename,
-
xbt_str_join(surf_path,
":"));
+ xbt_assert2(f
!=
NULL, "Cannot open file '%s' (path=%s)", filename,
+
xbt_str_join(surf_path,
":"));
tstr = xbt_str_from_file(f);
fclose(f);
tstr = xbt_str_from_file(f);
fclose(f);