fixing double destruction of CSL::data_type
authorXin Liu <xliu@fb.com>
Fri, 26 Oct 2012 18:44:41 +0000 (11:44 -0700)
committerJordan DeLong <jdelong@fb.com>
Mon, 29 Oct 2012 23:32:30 +0000 (16:32 -0700)
commit368a508272851c34011109d674a0fbe7b8b1d5f7
treeb2d1b680ba845bbec9778b488955a0ab35195c9e
parent2940c186c992dd7036c824550da643400e82d287
fixing double destruction of CSL::data_type

Summary:
the currently code calls both ~SkipListNode() and node->data_.~value_type()
causes double destructing the object.

Test Plan: adding dihde's testing code to a test case

Reviewed By: emailweixu@fb.com

FB internal diff: D612289
folly/ConcurrentSkipList-inl.h
folly/ConcurrentSkipList.h
folly/test/ConcurrentSkipListTest.cpp