From a835ee13e3f5a095467e645bd1ddea5ee208599e Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Wed, 26 Jun 2013 20:06:50 +0000 Subject: Fixed old 3-hashtable missing free on exit Always use default starting hash size --- src/htsserver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/htsserver.c') diff --git a/src/htsserver.c b/src/htsserver.c index 3559e3e..032ce53 100644 --- a/src/htsserver.c +++ b/src/htsserver.c @@ -1443,7 +1443,7 @@ int smallserver(T_SOC soc, char *url, char *method, char *data, char *path) { int htslang_init(void) { if (NewLangList == NULL) { - NewLangList = inthash_new(NewLangListSz); + NewLangList = inthash_new(0); if (NewLangList == NULL) { abortLog("Error in lang.h: not enough memory"); } else { @@ -1486,8 +1486,8 @@ static int htslang_load(char *limit_to, char *path) { // if (!limit_to) { LANG_DELETE(); - NewLangStr = inthash_new(NewLangStrSz); - NewLangStrKeys = inthash_new(NewLangStrKeysSz); + NewLangStr = inthash_new(0); + NewLangStrKeys = inthash_new(0); if ((NewLangStr == NULL) || (NewLangStrKeys == NULL)) { abortLog("Error in lang.h: not enough memory"); } else { -- cgit v1.2.3