Skip to content

Commit c2c1424

Browse files
committed
fix
1 parent 7719f55 commit c2c1424

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ydb/core/kqp/runtime/kqp_write_table.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,7 @@ class TShardedWriteController : public IShardedWriteController {
10841084
}
10851085

10861086
void Close() override {
1087+
auto allocGuard = TypeEnv.BindAllocator();
10871088
YQL_ENSURE(Serializer);
10881089
Closed = true;
10891090
Serializer->Close();
@@ -1189,6 +1190,12 @@ class TShardedWriteController : public IShardedWriteController {
11891190
, TypeEnv(typeEnv) {
11901191
}
11911192

1193+
~TShardedWriteController() {
1194+
auto allocGuard = TypeEnv.BindAllocator();
1195+
ShardsInfo.Clear();
1196+
Serializer = nullptr;
1197+
}
1198+
11921199
private:
11931200
void FlushSerializer(bool force) {
11941201
if (force) {

0 commit comments

Comments
 (0)