aboutsummaryrefslogtreecommitdiff
path: root/common/hashmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/hashmap.h')
-rw-r--r--common/hashmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/hashmap.h b/common/hashmap.h
index f4e115c7d2..2627babd0e 100644
--- a/common/hashmap.h
+++ b/common/hashmap.h
@@ -94,6 +94,7 @@ struct BaseNode<const char *, Val> {
Val _value;
BaseNode() {assert(0);}
BaseNode(const char *key) { _key = (char *)malloc(strlen(key)+1); strcpy(_key, key); }
+ ~BaseNode() { free(_key); }
};
// The table sizes ideally are primes. We use a helper function to find