diff --git a/emp-ag2pc/fpre.h b/emp-ag2pc/fpre.h index 9c7af42..2ee569b 100644 --- a/emp-ag2pc/fpre.h +++ b/emp-ag2pc/fpre.h @@ -46,6 +46,7 @@ class Fpre { prps = new PRP[THDS*2]; this->party = in_party; for(int i = 0; i < THDS; ++i) { + usleep(1000); io[i] = new T(in_io->is_server?nullptr:in_io->addr.c_str(), in_io->port, true); usleep(1000); io2[i] = new T(in_io->is_server?nullptr:in_io->addr.c_str(), in_io->port, true); diff --git a/test/abit.cpp b/test/abit.cpp index d8ac4b0..fe7369c 100644 --- a/test/abit.cpp +++ b/test/abit.cpp @@ -43,6 +43,7 @@ int main(int argc, char** argv) { error("check failed!"); } } + delete abit; delete io; return 0; } diff --git a/test/triple.cpp b/test/triple.cpp index 5578f1b..892863f 100644 --- a/test/triple.cpp +++ b/test/triple.cpp @@ -19,7 +19,7 @@ int main(int argc, char** argv) { cout << fpre->bandwidth()<check_correctness(fpre->MAC_res, fpre->KEY_res, fpre->batch_size); - + delete fpre; delete io; return 0; }