marimlem / minishell

0 stars 0 forks source link

invalid read: ctrl D #42

Closed marimlem closed 3 months ago

marimlem commented 3 months ago

minishell:$ exit ==2295705== Invalid read of size 4 ==2295705== at 0x404DE7: inputparsing (lu_inputparsing.c:29) ==2295705== by 0x4014A2: main (main.c:45) ==2295705== Address 0x4b220b8 is 120 bytes inside a block of size 128 free'd ==2295705== at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2295705== by 0x404C56: free_n_clean (free_utils.c:56) ==2295705== by 0x404DE2: inputparsing (lu_inputparsing.c:28) ==2295705== by 0x4014A2: main (main.c:45) ==2295705== Block was alloc'd at ==2295705== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2295705== by 0x409CD6: ft_calloc (ft_calloc.c:21) ==2295705== by 0x4013BD: main (main.c:21)

marimlem commented 3 months ago

fixed