KeyDB icon indicating copy to clipboard operation
KeyDB copied to clipboard

[BUG]Memory leak

Open chezadela opened this issue 11 months ago • 0 comments

Guys, I ran tests and it showed me a memory leak, please fix it

*** [err]: Check for memory leaks (pid 75075) in tests/unit/maxmemory.tcl Expected '0 leaks' to equal or match 'Process: keydb-server [75075] Path: /Users/USER/*/keydb-server Load Address: 0x1091ed000 Identifier: keydb-server Version: ??? Code Type: X86-64 Platform: macOS Parent Process: tclsh8.5 [61114]

Date/Time: 2025-01-21 06:31:01.764 +0300 Launch Time: 2025-01-21 06:31:00.825 +0300 OS Version: macOS 11.7.10 (20G1427) Report Version: 7 Analysis Tool: /Applications/Xcode.app/Contents/Developer/usr/bin/leaks Analysis Tool Version: Xcode 12.5.1 (12E507)

Physical footprint: 3144K Physical footprint (peak): 3144K

leaks Report Version: 4.0 Process 75075: 29975 nodes malloced for 2741 KB Process 75075: 1 leak for 16 total leaked bytes.

1 (16 bytes) ROOT LEAK: 0x7f89ed405c60 [16]

child process exited abnormally' *** [err]: Check for memory leaks (pid 75100) in tests/unit/maxmemory.tcl Expected '0 leaks' to equal or match 'Process: keydb-server [75100] Path: /Users/USER/*/keydb-server Load Address: 0x105154000 Identifier: keydb-server Version: ??? Code Type: X86-64 Platform: macOS Parent Process: tclsh8.5 [61114]

Date/Time: 2025-01-21 06:31:04.346 +0300 Launch Time: 2025-01-21 06:31:02.008 +0300 OS Version: macOS 11.7.10 (20G1427) Report Version: 7 Analysis Tool: /Applications/Xcode.app/Contents/Developer/usr/bin/leaks Analysis Tool Version: Xcode 12.5.1 (12E507)

Physical footprint: 3784K Physical footprint (peak): 3784K

leaks Report Version: 4.0 Process 75100: 25302 nodes malloced for 3164 KB Process 75100: 1 leak for 16 total leaked bytes.

1 (16 bytes) ROOT LEAK: 0x7ff6dec05c60 [16]

child process exited abnormally' Cleanup: may take some time... OK make[1]: *** [test] Error 1 make: *** [test] Error 2

chezadela avatar Jan 21 '25 03:01 chezadela