summaryrefslogtreecommitdiff
path: root/src/context
diff options
context:
space:
mode:
Diffstat (limited to 'src/context')
-rw-r--r--src/context/cdhashmap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/context/cdhashmap.h b/src/context/cdhashmap.h
index 1c9af0b87..324a5a2b4 100644
--- a/src/context/cdhashmap.h
+++ b/src/context/cdhashmap.h
@@ -168,7 +168,9 @@ class CDOhash_map : public ContextObj {
/** ensure copy ctor is only called by us */
CDOhash_map(const CDOhash_map& other) :
ContextObj(other),
- d_key(other.d_key),
+ // don't need to save the key---and if we do we can get
+ // refcounts for Node keys messed up and leak memory
+ d_key(),
d_data(other.d_data),
d_map(other.d_map),
d_prev(NULL),
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback