From 7c5e10e2c54e2f0b35c46d398e90e4dba4eb0783 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 16 Dec 2012 20:59:05 +0100 Subject: [PATCH] free hashtable pl_lookup_table from findvec() --- src/frontend/postcoms.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/frontend/postcoms.c b/src/frontend/postcoms.c index b1a198d31..3865033aa 100644 --- a/src/frontend/postcoms.c +++ b/src/frontend/postcoms.c @@ -864,6 +864,10 @@ killplot(struct plot *pl) tfree(pl->pl_title); tfree(pl->pl_name); tfree(pl->pl_typename); + + if (pl->pl_lookup_table) + nghash_free(pl->pl_lookup_table, NULL, NULL); + wl_free(pl->pl_commands); tfree(pl->pl_date); /* va: also tfree (memory leak) */ if (pl->pl_ccom) /* va: also tfree (memory leak) */ @@ -889,6 +893,10 @@ destroy_const_plot(void) nv = v->v_next; vec_free(v); } + + if (pl->pl_lookup_table) + nghash_free(pl->pl_lookup_table, NULL, NULL); + wl_free(pl->pl_commands); if (pl->pl_ccom) /* va: also tfree (memory leak) */ throwaway(pl->pl_ccom);