Hazard pointers: Fix leak in hazptr_priv destruction
authorMaged Michael <magedmichael@fb.com>
Fri, 30 Jun 2017 04:21:32 +0000 (21:21 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 30 Jun 2017 04:22:02 +0000 (21:22 -0700)
commit17d234c6a02351b52f5ab4d9e4b91a31dc030042
treebb17ca44fc4163dd473c8ebc6dfe01920c84207e
parenta4a7fad40c50b9a63b0fe2e67ea62207ebe76f88
Hazard pointers: Fix leak in hazptr_priv destruction

Summary:
- Fixed leak in hazptr_priv destruction
- Updated tests to detect leak

Reviewed By: djwatson

Differential Revision: D5351280

fbshipit-source-id: 724810cbbe0565f0cbd41f9d2121abefd98487bd
folly/experimental/hazptr/hazptr-impl.h
folly/experimental/hazptr/test/HazptrTest.cpp