From d9b82494d015b8e80ff09fe00f772a312407aa24 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 1 Jun 2023 18:38:26 +0200 Subject: [PATCH] Free the table at the end in ovnitop --- src/emu/ovnitop.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/emu/ovnitop.c b/src/emu/ovnitop.c index 59580d1..0862d23 100644 --- a/src/emu/ovnitop.c +++ b/src/emu/ovnitop.c @@ -61,6 +61,12 @@ report(void) for (struct entry *e = table; e; e = e->hh.next) printf("%s %10ld\n", e->mcv, e->count); + + struct entry *e, *tmp; + HASH_ITER(hh, table, e, tmp) { + HASH_DEL(table, e); + free(e); + } } static void