Leak static table (#28623)

pull/28628/head
Craig Tiller 3 years ago committed by GitHub
parent 9f090a3a32
commit f873ae644b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/ext/transport/chttp2/transport/hpack_parser_table.cc

@ -226,8 +226,8 @@ GPR_ATTRIBUTE_NOINLINE HPackTable::Memento MakeMemento(size_t i) {
} // namespace
const HPackTable::StaticMementos& HPackTable::GetStaticMementos() {
static const StaticMementos static_mementos;
return static_mementos;
static const StaticMementos* const static_mementos = new StaticMementos();
return *static_mementos;
}
HPackTable::StaticMementos::StaticMementos() {

Loading…
Cancel
Save