diff options
-rw-r--r-- | src/context/cdhashmap.h | 4 |
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), |