Skip to content

Commit

Permalink
Possible fix for bug594
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeters committed Nov 13, 2014
1 parent 270a557 commit fc0e2ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/context/cdhashmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit fc0e2ab

Please sign in to comment.