Skip to content

Commit

Permalink
[fix][client] Potential memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-hanqing authored and ketor committed Feb 7, 2025
1 parent 5a65c5d commit b6e35a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/s3/client_s3_cache_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2297,6 +2297,7 @@ DINGOFS_ERROR DataCache::Flush(uint64_t inodeId, bool toS3) {
DINGOFS_ERROR ret = PrepareFlushTasks(inodeId, data, &s3Tasks, &kvCacheTasks,
&chunkId, &writeOffset);
if (DINGOFS_ERROR::OK != ret) {
free(data);
return ret;
}

Expand Down

0 comments on commit b6e35a8

Please sign in to comment.