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
Resolve memory leaks
[simgrid.git]
/
src
/
surf
/
surf.hpp
diff --git
a/src/surf/surf.hpp
b/src/surf/surf.hpp
index
8dab3fd
..
c88ca70
100644
(file)
--- a/
src/surf/surf.hpp
+++ b/
src/surf/surf.hpp
@@
-167,7
+167,10
@@
class Resource {
public:
Resource();
Resource(ModelPtr model, const char *name, xbt_dict_t properties);
public:
Resource();
Resource(ModelPtr model, const char *name, xbt_dict_t properties);
- virtual ~Resource() {};
+ virtual ~Resource() {
+ xbt_free((void*)m_name);
+ xbt_dict_free(&m_properties);
+ };
virtual void updateState(tmgr_trace_event_t event_type, double value, double date)=0;
virtual void updateState(tmgr_trace_event_t event_type, double value, double date)=0;