free hashtable pl_lookup_table from findvec()

This commit is contained in:
rlar 2012-12-16 20:59:05 +01:00 committed by dwarning
parent 011f037e41
commit 7c5e10e2c5
1 changed files with 8 additions and 0 deletions

View File

@ -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);