diff --git a/libs/gamecode/builtins/bi_strhash.c b/libs/gamecode/builtins/bi_strhash.c index bc0cd619c..9685855a4 100644 --- a/libs/gamecode/builtins/bi_strhash.c +++ b/libs/gamecode/builtins/bi_strhash.c @@ -414,6 +414,9 @@ bi_strh_clear (progs_t *pr, void *data) res->hashes[i] = 0; } } + free (res->hashes); + res->hashes = 0; + res->cnt_hashes = 0; }