「🔨」 fix: prompt leak fixed

This commit is contained in:
KeyZox committed 2024-05-02 15:54:16 +02:00
1 parent d08e907dc7
commit c882ffb3cf
1 file changed
+2 -1
+2 -1
View File
@@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
/* Updated: 2024/05/02 15:47:34 by adjoly ### ########.fr */
/* Updated: 2024/05/02 15:53:21 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@@ -43,6 +43,7 @@ int main(int ac, char **av, char **env)
{
prompt = get_prompt();
test = readline(prompt);
free(prompt);
add_history(test);
lll = ft_split(test, ' ');
if (!*lll)