Browse Source

One more memory cleanup

Ian Goldberg 1 year ago
parent
commit
6f22858d44
1 changed files with 7 additions and 0 deletions
  1. 7 0
      2p-preprocessing/ot_blinds.cpp

+ 7 - 0
2p-preprocessing/ot_blinds.cpp

@@ -339,6 +339,13 @@ void run_test_receiver(uint32_t numots, uint32_t bitlength, snd_ot_flavor stype,
 	   X1.PrintHex();
    #endif
 
+	for (uint32_t i = 0; i < nsndvals; i++)
+	{
+		delete (X[i]);
+		delete (Y[i]);
+	}
+	free(X);
+	free(Y);
 	delete m_fMaskFct;
 //	choices.delCBitVector();
 	response.delCBitVector();