Skip to content

Commit

Permalink
free buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiyueXu77 committed Jun 11, 2024
1 parent 71e578c commit 454f69d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/collective/aggregator.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ void ApplyWithLabels(Context const*, MetaInfo const& info, HostDeviceVector<T>*
// call HandleGHPairs
size_t size;
processor_instance->HandleGHPairs(&size, buffer, buffer_size);

// free the buffer
free(buffer);
} else {
// clear text mode, broadcast the data directly
result->Resize(size);
Expand Down

0 comments on commit 454f69d

Please sign in to comment.