We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cad2eb0 commit 28a33a5Copy full SHA for 28a33a5
include/proxy-wasm/wasm.h
@@ -75,8 +75,11 @@ class WasmBase : public std::enable_shared_from_this<WasmBase> {
75
}
76
void clearWasmInContext() {
77
for (auto &item : contexts_) {
78
- item.second->clearWasm();
+ if (item.second != nullptr) {
79
+ item.second->clearWasm();
80
+ }
81
82
+ contexts_.clear();
83
84
uint32_t allocContextId();
85
bool isFailed() { return failed_ != FailState::Ok; }
0 commit comments