Prevent leaks in ThreadLocalPtr initialization
Summary: While making an unrelated change, (D3271563, which was needed from an unrelated change, (D3237530)), I noticed a lack of exception safety here. If `std::bad_alloc` were thrown, then we don't want to leak memory. Reviewed By: ericniebler Differential Revision: D3271911 fbshipit-source-id: 0d316c0fa865a7d64622c1d62160bb0c2b061d78
Showing
Please register or sign in to comment