Skip to content

Commit

Permalink
[fix](sink) fix memory leak in VNodeChannel (apache#15834) (apache#15835
Browse files Browse the repository at this point in the history
)

Signed-off-by: freemandealer <[email protected]>

Signed-off-by: freemandealer <[email protected]>
  • Loading branch information
freemandealer committed Jan 12, 2023
1 parent 8841988 commit f3ef3f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions be/src/vec/sink/vtablet_sink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ VNodeChannel::VNodeChannel(VOlapTableSink* parent, IndexChannel* index_channel,
}

VNodeChannel::~VNodeChannel() {
if (_open_closure != nullptr) {
if (_open_closure->unref()) {
delete _open_closure;
}
_open_closure = nullptr;
}
if (_add_block_closure != nullptr) {
delete _add_block_closure;
_add_block_closure = nullptr;
Expand Down

0 comments on commit f3ef3f7

Please sign in to comment.