From b4ddc495b467682137f22f0a20628d1f6570480a Mon Sep 17 00:00:00 2001 From: idealeer Date: Fri, 3 Dec 2021 21:59:37 +0800 Subject: [PATCH] release version 1.0.1 Bugs: Fix the memory leakage issue Features: increase the `batch` number --- lib/constraint.c | 1 + src/state.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/constraint.c b/lib/constraint.c index 3e4e3e7..12284b3 100644 --- a/lib/constraint.c +++ b/lib/constraint.c @@ -477,6 +477,7 @@ void constraint_lookup_index_for_ipvx(mpz_t ipvx, constraint_t *con, mpz_ior(ipvx, con->radix[mpz_get_ui(radix_idx)], radix_offset); // TODO radix_idx is no more than int32 mpz_clear(radix_offset); + mpz_clear(radix_idx); return; } mpz_clear(radix_idx); diff --git a/src/state.h b/src/state.h index 9bc41f4..2920fb0 100644 --- a/src/state.h +++ b/src/state.h @@ -83,7 +83,7 @@ struct state_conf { int rate; // rate in bits per second uint64_t bandwidth; - uint8_t batch; + int batch; int packet_streams; int num_retries; // how many seconds after the termination of the sender will the receiver