Fix Fiber::LocalData leak for large fiber locals
[folly.git] / folly / fibers / Fiber.cpp
index 39dcc3332983d1bde8e0867d05d53d2d1599c8f9..f5995de31b2a3c5618b68b32425ee652664b8321 100644 (file)
@@ -189,6 +189,10 @@ void Fiber::preempt(State state) {
   }
 }
 
+Fiber::LocalData::~LocalData() {
+  reset();
+}
+
 Fiber::LocalData::LocalData(const LocalData& other) : data_(nullptr) {
   *this = other;
 }