[fix](memory) Fix Aggregation null key memory leak due to incorrect aggfunc destroy #19201

This commit is contained in:
Xinyi Zou
2023-04-28 18:41:41 +08:00
committed by GitHub
parent b87d21d836
commit a324ee794c

View File

@ -1778,6 +1778,9 @@ void AggregationNode::_close_with_serialized_key() {
mapped = nullptr;
}
});
if (data.has_null_key_data()) {
_destroy_agg_status(data.get_null_key_data());
}
},
_agg_data->_aggregated_method_variant);
release_tracker();