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);