marimlem / minishell

0 stars 0 forks source link

leak: "" | "" #22

Closed marimlem closed 3 months ago

marimlem commented 3 months ago

==2241044== 57 bytes in 1 blocks are definitely lost in loss record 18 of 67 ==2241044== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2241044== by 0x4099BA: ft_strjoin (ft_strjoin.c:23) ==2241044== by 0x405D1B: heredoc_path (execute2.c:62) ==2241044== by 0x405D84: early_heredoc (execute2.c:79) ==2241044== by 0x406004: process_handler (execute2.c:209) ==2241044== by 0x40622F: execute_loop (execute2.c:270) ==2241044== by 0x406796: executor2 (execute2.c:420) ==2241044== by 0x401D63: main (main.c:310)

marimlem commented 3 months ago

branch: merge/refactor-exp-com-lex fixed by moving allocation of hd_path to after actual heredoc is found in early_heredoc loop