Closed marimlem closed 1 month ago
minishell:$ $"$USER" minishell: command not found: $USER ==2294475== ==2294475== HEAP SUMMARY: ==2294475== in use at exit: 209,737 bytes in 319 blocks ==2294475== total heap usage: 2,209 allocs, 1,890 frees, 264,285 bytes allocated ==2294475== ==2294475== 13 bytes in 1 blocks are definitely lost in loss record 8 of 74 ==2294475== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2294475== by 0x409CD6: ft_calloc (ft_calloc.c:21) ==2294475== by 0x401B8C: expand_env (expander.c:101) ==2294475== by 0x401F23: expander (expander.c:163) ==2294475== by 0x406557: heredoc_expanding (execute_rdr.c:90) ==2294475== by 0x406D11: early_heredoc (execute_heredoc.c:70) ==2294475== by 0x405AC4: process_handler (execute2.c:48) ==2294475== by 0x405C2F: execute_loop (execute2.c:96) ==2294475== by 0x405DC6: executor2 (execute2.c:135) ==2294475== by 0x401501: main (main.c:53) ==2294475== ==2294475== LEAK SUMMARY: ==2294475== definitely lost: 13 bytes in 1 blocks ==2294475== indirectly lost: 0 bytes in 0 blocks ==2294475== possibly lost: 0 bytes in 0 blocks ==2294475== still reachable: 0 bytes in 0 blocks ==2294475== suppressed: 209,724 bytes in 318 blocks
$"$USER" expected output: LUCA invalid read