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
leak--, bad indentation-- too
[simgrid.git]
/
src
/
surf
/
host_ptask_L07.cpp
diff --git
a/src/surf/host_ptask_L07.cpp
b/src/surf/host_ptask_L07.cpp
index
eab2ddd
..
ce180bc
100644
(file)
--- a/
src/surf/host_ptask_L07.cpp
+++ b/
src/surf/host_ptask_L07.cpp
@@
-202,10
+202,9
@@
L07Action::L07Action(Model *model, int host_nb,
int nb_used_host = 0; /* Only the hosts with something to compute (>0 flops) are counted) */
double latency = 0.0;
int nb_used_host = 0; /* Only the hosts with something to compute (>0 flops) are counted) */
double latency = 0.0;
-
this->p_netcardList->reserve(host_nb);
for (int i = 0; i<host_nb; i++)
this->p_netcardList->reserve(host_nb);
for (int i = 0; i<host_nb; i++)
-
this->p_netcardList->push_back(host_list[i]->pimpl_netcard);
+ this->p_netcardList->push_back(host_list[i]->pimpl_netcard);
/* Compute the number of affected resources... */
if(bytes_amount != NULL) {
/* Compute the number of affected resources... */
if(bytes_amount != NULL) {
@@
-552,6
+551,7
@@
void LinkL07::updateLatency(double value, double date)
**********/
L07Action::~L07Action(){
**********/
L07Action::~L07Action(){
+ delete p_netcardList;
free(p_communicationAmount);
free(p_computationAmount);
}
free(p_communicationAmount);
free(p_computationAmount);
}