projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Fiber::LocalData leak for large fiber locals
[folly.git]
/
folly
/
fibers
/
Fiber.cpp
diff --git
a/folly/fibers/Fiber.cpp
b/folly/fibers/Fiber.cpp
index 39dcc3332983d1bde8e0867d05d53d2d1599c8f9..f5995de31b2a3c5618b68b32425ee652664b8321 100644
(file)
--- a/
folly/fibers/Fiber.cpp
+++ b/
folly/fibers/Fiber.cpp
@@
-189,6
+189,10
@@
void Fiber::preempt(State state) {
}
}
+Fiber::LocalData::~LocalData() {
+ reset();
+}
+
Fiber::LocalData::LocalData(const LocalData& other) : data_(nullptr) {
*this = other;
}