소스 검색

One more memory cleanup

Ian Goldberg 1 년 전
부모
커밋
6f22858d44
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  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();