summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ht.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/ht.h b/src/common/ht.h
index a83e093264..d51d7c5c00 100644
--- a/src/common/ht.h
+++ b/src/common/ht.h
@@ -307,7 +307,8 @@ ht_string_hash(const char *s)
elm = next; \
} \
} \
- freefn(head->hth_table); \
+ if (head->hth_table) \
+ freefn(head->hth_table); \
head->hth_table = new_table; \
} else { \
unsigned b, b2; \