🔨」 fix: heredoc leak

This commit is contained in:
2024-08-10 18:13:13 +02:00
parent f22d5653d8
commit f4fd027293
12 changed files with 82 additions and 44 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/09 17:24:15 by adjoly #+# #+# */
/* Updated: 2024/08/05 23:11:27 by adjoly ### ########.fr */
/* Updated: 2024/08/10 17:53:25 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -31,6 +31,15 @@ t_list **get_list(t_list **list)
return (ret);
}
t_list **get_list2(t_list **list)
{
static t_list **ret;
if (list)
ret = list;
return (ret);
}
void *get_void(void *in)
{
static void *ret;
@ -55,12 +64,3 @@ int get_exit_code(int in)
exit_code += 256;
return (exit_code);
}
int get_fd_heredoc(int in)
{
static int fd;
if (in != -1)
fd = in;
return (fd);
}