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
return NULL to avoid that the function returns an invalid pointer
[simgrid.git]
/
src
/
surf
/
trace_mgr.c
diff --git
a/src/surf/trace_mgr.c
b/src/surf/trace_mgr.c
index
3cda9b4
..
a00896d
100644
(file)
--- a/
src/surf/trace_mgr.c
+++ b/
src/surf/trace_mgr.c
@@
-188,6
+188,7
@@
tmgr_trace_event_t tmgr_history_get_next_event_leq(tmgr_history_t h,
trace_event->idx = 0;
} else { /* We don't need this trace_event anymore */
free(trace_event);
+ return NULL;
}
return trace_event;