diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-26 20:06:50 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-26 20:06:50 +0000 |
commit | a835ee13e3f5a095467e645bd1ddea5ee208599e (patch) | |
tree | d7412dd6f882ee6b55f97a3b74c6d56705ca7ccc /src/htsserver.c | |
parent | b5e663cd80904d70ad2f0d6202a0c3ce6e582b58 (diff) |
Fixed old 3-hashtable missing free on exit
Always use default starting hash size
Diffstat (limited to 'src/htsserver.c')
-rw-r--r-- | src/htsserver.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |