Han2-Ro / 42minishell

0 stars 0 forks source link

Fix leaks on cmdnotfound #117

Closed Han2-Ro closed 5 months ago

Han2-Ro commented 5 months ago

Fix leaks that occur when a command is not found

Han2-Ro commented 5 months ago

I had comment out clear_gnl_buf() in order for the main process to work properly after a child process returns in the main. I changed BUFFER_SIZE inside get_next_line.h to 1 so it doesn't leak any remaining buffer.