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/proxy | |
parent | b5e663cd80904d70ad2f0d6202a0c3ce6e582b58 (diff) |
Fixed old 3-hashtable missing free on exit
Always use default starting hash size
Diffstat (limited to 'src/proxy')
-rw-r--r-- | src/proxy/store.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/proxy/store.c b/src/proxy/store.c index 4ad4a0c..1b9e9f2 100644 --- a/src/proxy/store.c +++ b/src/proxy/store.c @@ -234,7 +234,7 @@ struct _PT_Cache { PT_Indexes PT_New(void) { PT_Indexes index = (PT_Indexes) calloc(sizeof(_PT_Indexes), 1); - index->cil = inthash_new(127); + index->cil = inthash_new(0); index->index_size = 0; index->index = NULL; return index; @@ -432,7 +432,7 @@ char **PT_Enumerate(PT_Indexes indexes, const char *url, int subtree) { inthash hdupes = NULL; if (!subtree) - hdupes = inthash_new(127); + hdupes = inthash_new(0); StringClear(list); StringClear(listindexes); StringClear(subitem); @@ -549,7 +549,7 @@ PT_Index PT_LoadCache(const char *filename) { index->type = type; index->slots.common.timestamp = (time_t) time(NULL); index->slots.common.startUrl[0] = '\0'; - index->slots.common.hash = inthash_new(8191); + index->slots.common.hash = inthash_new(0); if (!_IndexFuncts[type].PT_LoadCache(index, filename)) { proxytrack_print_log(DEBUG, "reading httrack cache (format #%d) %s : error", |