Explorar el Código

Fix a memory leak

Ian Goldberg hace 1 año
padre
commit
6534d81042
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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);