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
Fix Memleaks
[simgrid.git]
/
src
/
surf
/
surf.cpp
diff --git
a/src/surf/surf.cpp
b/src/surf/surf.cpp
index
f0230a0
..
ee63af4
100644
(file)
--- a/
src/surf/surf.cpp
+++ b/
src/surf/surf.cpp
@@
-667,8
+667,9
@@
Resource::Resource(surf_model_t model, const char *name, xbt_dict_t props)
: m_name(xbt_strdup(name)), m_properties(props), p_model(model), m_running(true)
{}
-Resource::Resource(){
-}
+Resource::Resource()
+: m_name(NULL), m_properties(NULL), p_model(NULL)
+{}
const char *Resource::getName()
{