cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit b95f69c821941fc73ff1bf397c549189bd5fce9a
parent a8a096d9df2628dc470ff66ef1fe3f5941b86609
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 24 Apr 2019 21:56:24 -0700

map: Free old key and value arrays when resizing

Diffstat:
Mmap.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/map.c b/map.c @@ -109,6 +109,8 @@ mapput(struct map *h, struct mapkey *k) h->vals[j] = oldvals[i]; } } + free(oldkeys); + free(oldvals); } i = keyindex(h, k); if (!h->keys[i].str) {