diff --git a/builtins/.nfs000000000ab804b60000004a b/builtins/.nfs000000000ab804b60000004a new file mode 100644 index 0000000..ca45be8 Binary files /dev/null and b/builtins/.nfs000000000ab804b60000004a differ diff --git a/env/env1.c b/env/env1.c index d096ed6..e47bf0e 100644 --- a/env/env1.c +++ b/env/env1.c @@ -6,7 +6,7 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/02/02 14:39:56 by erey-bet #+# #+# */ -/* Updated: 2023/04/18 12:47:08 by erey-bet ### ########.fr */ +/* Updated: 2023/04/18 13:57:38 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -78,7 +78,10 @@ int create_value_by_key(char *key, char *value, t_list **head) t_env *content; if (set_value_by_key(key, value, head) == 0) + { + free(key); return (0); + } content = ft_calloc(1, sizeof(t_env)); if (content == NULL) return (1);