-
![image](https://github.com/gysiang/minishell/assets/124663345/be0049c7-16a7-4217-ac5c-30999e074379)
-
```c
>>> Minishell>$ ./minishell
==324899== Memcheck, a memory error detector
==324899== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==324899== Using Valgrind-3.18.1 and LibVE…
-
```bash
┌─[ilkayyanar] [SHLVL 2]
└─[~/travail/repo_github/42Cursus/42-minishell] [0]-❥ je vais etre
> free
> quel
> dommahe
> lol
je vais etre
free
quel
dommahe
minishell(88944,0x203d0bac0…
-
minishell:$ ./minishell
minishell:$ exit 255
exit minishell
(invalid free here)
minishell:$ echo $?
65280
==2253641== Invalid free() / delete / delete[] / realloc()
==2253641== at 0x48…
-
![image](https://github.com/gysiang/minishell/assets/124663345/54d68868-fb43-448a-b08e-f0325a5daa86)
@gysiang
-
```
➜ 42_minishell.c git:(builtins) ✗ bash
mbernard@z3r8p3:~/sgoinfre/42_minishell.c$ c
0 0 0
mbernard@z3r8p3:~/sgoinfre/42_minishell.c$ exit
exit
➜ 42_minishell.c git:(buil…
-
Set the $PATH to a multiple directory value (directory1:directory2) and ensure that directories are
checked in order from left to right
cd
pwd..
-
```
✅ minishell ➜ cat file_does_nocat file_does_not_exist && /bin/echo 2
cat: file_does_not_exist: No such file or directory
✅ minishell ➜
```
-
Usage of calloc instead of ft_calloc who is protected by garbagecollector
Valgrind output:
```bash
==590348==
==590348== HEAP SUMMARY:
==590348== in use at exit: 208,711 bytes in 244 block…
RPDJF updated
6 months ago
-
@axellee1994 try this to see if it still leaks. before exit it will show a lot of leaks but upon exit, all the leaks are cleared and only 3 fd left.
int redirect_input(t_shell *minishell, t_token *…