From: cherierm Date: Thu, 11 Oct 2007 10:27:01 +0000 (+0000) Subject: return NULL to avoid that the function returns an invalid pointer X-Git-Tag: v3.3~980 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6416bcb08e3e6a4b304df4c0647a39a1a86b5704?ds=sidebyside return NULL to avoid that the function returns an invalid pointer git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4811 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/surf/trace_mgr.c b/src/surf/trace_mgr.c index 3cda9b4c30..a00896dc34 100644 --- 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;