diff options
author | Phil Sutter <phil@nwl.cc> | 2018-04-13 16:52:27 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-14 13:53:02 +0200 |
commit | 23a6c8ccdd293a2c3448e5e197cd0384bef767cb (patch) | |
tree | 03bffc4a95f922a059dbe07d68a93fd13b0b4e46 /src/evaluate.c | |
parent | 438dddb2146f21c971e552753c7e9488e3c8b193 (diff) |
segtree: Fix memory leaks
This fixes memory leaks in three places:
* set_overlap():
The allocated intervals have to be freed again before returning to
caller. While being at it, reduce indenting level in said function to
stay below 80 columns boundary.
* range_is_prefix():
* interval_map_decompose():
GMP documentation suggests to call mpz_clear() for all mpz_t type
variables once they are not used anymore to free the space they occupy.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/evaluate.c')
0 files changed, 0 insertions, 0 deletions