1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 05:00:59 +01:00

fix two memory leaks (at least I hope they are fixed) and some out-of-bound array accesses, plus some defensive programming for heap allocated param structs (14605)

This commit is contained in:
Sven Wischnowsky 2001-05-31 09:43:59 +00:00
parent ae5e34db25
commit 1b2d095217
6 changed files with 44 additions and 38 deletions

View file

@ -60,6 +60,7 @@ createspecialhash(char *name, GetNodeFunc get, ScanTabFunc scan)
pm->sets.hfn = hashsetfn;
pm->unsetfn = stdunsetfn;
pm->u.hash = ht = newhashtable(0, name, NULL);
pm->ct = 0;
ht->hash = hasher;
ht->emptytable = (TableFunc) shempty;