Closed syamashi closed 3 years ago
unset OLDPWD cd ..
==1218== 1 bytes in 1 blocks are definitely lost in loss record 1 of 8 ==1218== at 0x483B7F3: malloc (vg_replace_malloc.c:309) ==1218== by 0x11027C: ft_strdup (in /mnt/c/Users/shojiro/Desktop/42/minishell/git/minishell) ==1218== by 0x10DA63: value_get (util.c:148) ==1218== by 0x10F5B2: pwd_update (sh_cd.c:14) ==1218== by 0x10F8C3: sh_cd (sh_cd.c:75) ==1218== by 0x10E1E6: sh_launch (sh_launch.c:69) ==1218== by 0x10984A: minishell (minishell.c:127) ==1218== by 0x109464: main (main.c:19)
cd NULL
==1093== 14 bytes in 1 blocks are definitely lost in loss record 4 of 10 ==1093== at 0x483B7F3: malloc (vg_replace_malloc.c:309) ==1093== by 0x110264: ft_strdup (in /mnt/c/Users/shojiro/Desktop/42/minishell/git/minishell) ==1093== by 0x10DA42: value_get (util.c:144) ==1093== by 0x10F6E6: cd_no_args (sh_cd.c:33) ==1093== by 0x10F88F: sh_cd (sh_cd.c:69) ==1093== by 0x10E1E6: sh_launch (sh_launch.c:69) ==1093== by 0x10984A: minishell (minishell.c:127) ==1093== by 0x109464: main (main.c:19)