Ian Goldberg 1 рік тому
батько
коміт
6534d81042
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      Enclave/sort.cpp

+ 1 - 0
Enclave/sort.cpp

@@ -57,6 +57,7 @@ size_t sort_precompute(uint32_t N)
 
     WaksmanNetwork wnet(N);
     wnet.setPermutation(random_permutation);
+    delete[] random_permutation;
 
     // Note that sized_wns[N] creates a map entry for N if it doesn't yet exist
     pthread_mutex_lock(&precomp_wns.mutex);