Skip to content

Commit

Permalink
curvefs/client: fix memory leak of memcached
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhongsong committed Nov 7, 2023
1 parent bb3912e commit d996e02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions curvefs/src/client/kvclient/memcache_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ class MemCachedClient : public KVClient {
LOG(ERROR) << "Get key = " << key << " error = " << *errorlog
<< ", get_value_len = " << value_length
<< ", expect_value_len = " << length;
free(res);
memcached_free(tcli);
tcli = nullptr;
}
Expand Down

0 comments on commit d996e02

Please sign in to comment.