fix action

This commit is contained in:
Xiao Wang
2021-05-18 00:14:07 -05:00
parent 0848cfb9a7
commit a050b97c77
3 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -43,6 +43,7 @@ int main(int argc, char** argv) {
error("check failed!");
}
}
delete abit;
delete io;
return 0;
}

View File

@@ -19,7 +19,7 @@ int main(int argc, char** argv) {
cout << fpre->bandwidth()<<endl;
fpre->check_correctness(fpre->MAC_res, fpre->KEY_res, fpre->batch_size);
delete fpre;
delete io;
return 0;
}