From fc0e2abf6318888541aa3350a0967fabf8c0e504 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Tue, 11 Nov 2014 16:21:37 -0500 Subject: [PATCH] Possible fix for bug594 --- src/context/cdhashmap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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), -- 2.30.2