]> AND Public Git Repository - simgrid.git/blobdiff - win32_test_app/src/TThreadDynarray.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added an ico as Pierre also wants this format.
[simgrid.git] / win32_test_app / src / TThreadDynarray.c
index 73f75437d53365c68016b87b071bc239a6c2fe25..069111609114b638b9e289fba93c61d5aab8406d 100644 (file)
@@ -241,10 +241,8 @@ void ThreadDynarray_clear(ThreadDynarray_t ptr)
 {
   ThreadDynarray_lock(ptr);
 
-  if (ptr->threads) {
-    free(ptr->threads);
-    ptr->threads = NULL;
-  }
+  free(ptr->threads);
+  ptr->threads = NULL;
 
   ptr->count = 0;
   ptr->capacity = 0;