From aad023de7b14ba4f3116459dd5e64230761bc982 Mon Sep 17 00:00:00 2001 From: Lennart Braun Date: Sun, 16 Sep 2018 00:24:00 +0300 Subject: [PATCH] fix malloc/free mismatch Buffer was allocated with malloc and free with delete[]. --- src/util/ot/naor-pinkas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/ot/naor-pinkas.cpp b/src/util/ot/naor-pinkas.cpp index 380811f..1bdfb51 100644 --- a/src/util/ot/naor-pinkas.cpp +++ b/src/util/ot/naor-pinkas.cpp @@ -81,7 +81,7 @@ void NaorPinkas::Receiver(uint32_t nSndVals, uint32_t nOTs, CBitVector& choices, delete bc;//BrickDelete(&bc); delete bg;//BrickDelete(&bg); - delete [] pBuf; + free(pBuf); free(PK_sigma); free(pDec); free(pC);