danielealbano / cachegrand

cachegrand - a modern data ingestion, processing and serving platform built for today's hardware
BSD 3-Clause "New" or "Revised" License
975 stars 34 forks source link

Fix memory leaks when set and shutdown #138

Closed danielealbano closed 2 years ago

danielealbano commented 2 years ago

This PR fixes a couple of memory fixes:

The PR includes also:

codecov[bot] commented 2 years ago

Codecov Report

Merging #138 (cef76ac) into main (09034fb) will increase coverage by 0.24%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #138      +/-   ##
==========================================
+ Coverage   79.94%   80.19%   +0.24%     
==========================================
  Files          86       86              
  Lines        5127     5144      +17     
==========================================
+ Hits         4099     4125      +26     
+ Misses       1028     1019       -9     
Impacted Files Coverage Δ
src/worker/worker.c 71.60% <ø> (-0.35%) :arrow_down:
.../data_structures/hashtable/mcmp/hashtable_op_set.c 100.00% <100.00%> (ø)
...redis/command/network_protocol_redis_command_set.c 73.75% <100.00%> (+0.37%) :arrow_up:
src/storage/db/storage_db.c 48.18% <100.00%> (+1.48%) :arrow_up:
src/worker/worker_op.c 100.00% <100.00%> (ø)
...rc/network/protocol/redis/network_protocol_redis.c 80.69% <0.00%> (+4.45%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 09034fb...cef76ac. Read the comment docs.