diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-27 15:33:35 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-27 15:33:35 +0200 |
commit | 3a09e7ae69c3eb1fc3d1f8dfa25f7376ca066e86 (patch) | |
tree | e550fb262473c3498c78c4e556f6c7e14d462a79 /src/u_utils.c | |
parent | Fuck this (diff) | |
download | 42-minishell-3a09e7ae69c3eb1fc3d1f8dfa25f7376ca066e86.tar.gz 42-minishell-3a09e7ae69c3eb1fc3d1f8dfa25f7376ca066e86.tar.bz2 42-minishell-3a09e7ae69c3eb1fc3d1f8dfa25f7376ca066e86.tar.xz 42-minishell-3a09e7ae69c3eb1fc3d1f8dfa25f7376ca066e86.tar.zst 42-minishell-3a09e7ae69c3eb1fc3d1f8dfa25f7376ca066e86.zip |
Freed leaks
Diffstat (limited to '')
-rw-r--r-- | src/u_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/u_utils.c b/src/u_utils.c index f50d861..ad44e82 100644 --- a/src/u_utils.c +++ b/src/u_utils.c @@ -19,12 +19,12 @@ #include "s_struct.h" void -u_eof_stdin(void) + u_eof_fd(int32_t fd) { char *line; - close(STDIN_FILENO); - get_next_line(STDIN_FILENO, &line); + close(fd); + get_next_line(fd, &line); ft_memdel((void*)&line); } |