Thomas-Chqt / minishell

bash-like shell
MIT License
1 stars 0 forks source link

Memory leak when cd #83

Closed Thomas-Chqt closed 1 year ago

Thomas-Chqt commented 1 year ago
✔︎ minishell > cd
✔︎ minishell > exit

Leak Summary
Total Memory allocated 5328 bytes
Total Memory freed     5214 bytes
Memory Leaked          114 bytes

Memory leak at line 23 in file ./sources/ft_calloc.c: (57 bytes) (0x7f94cd403e90)
Memory leak at line 23 in file ./sources/ft_calloc.c: (57 bytes) (0x7f94cd403d50)

leaks Report Version: 4.0
Process 97822: 399 nodes malloced for 341 KB
Process 97822: 2 leaks for 128 total leaked bytes.

    2 (128 bytes) << TOTAL >>
      1 (64 bytes) ROOT LEAK: 0x7f94cd403d50 [64]  length: 56  "/Users/tchoquet/Documents/42Projects/minishell/minishell"
      1 (64 bytes) ROOT LEAK: 0x7f94cd403e90 [64]  length: 56  "/Users/tchoquet/Documents/42Projects/minishell/minishell"
Thomas-Chqt commented 1 year ago
5d9b37007583c493cbdf5e5024bd06749131a93b is the first bad commit
commit 5d9b37007583c493cbdf5e5024bd06749131a93b
Author: sotanak <127929440+jizots@users.noreply.github.com>
Date:   Tue Aug 22 19:26:25 2023 +0900

    Using of set_env_single_str (#81)