Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
no need to be protective against free(NULL), that's a noop
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 26 Jan 2016 18:10:37 +0000 (19:10 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 26 Jan 2016 18:10:37 +0000 (19:10 +0100)
src/surf/host_ptask_L07.cpp

index 69b9b75480931a60bdd260b80e6a6b8e694da162..3e7f798384ff720cb78c44a60c4dd4f2c098daa8 100644 (file)
@@ -571,8 +571,7 @@ void LinkL07::updateLatency(double value, double date)
  **********/
 
 L07Action::~L07Action(){
-  if (p_communicationAmount != NULL)
-    free(p_communicationAmount);
+  free(p_communicationAmount);
   free(p_computationAmount);
 }