From bd5e1671fcfa7b6994f0f079c664c64225aabfd2 Mon Sep 17 00:00:00 2001 From: Etienne Rey-bethbeder Date: Tue, 18 Apr 2023 14:00:48 +0200 Subject: [PATCH] _ --- builtins/.nfs000000000ab804b60000004a | Bin 0 -> 12288 bytes env/env1.c | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 builtins/.nfs000000000ab804b60000004a diff --git a/builtins/.nfs000000000ab804b60000004a b/builtins/.nfs000000000ab804b60000004a new file mode 100644 index 0000000000000000000000000000000000000000..ca45be8654814bb56d10eaf98f499266ae1b8b48 GIT binary patch literal 12288 zcmeI2O^g&p7={b+uMt%6qMnLbWqSU9cB5>=0)fQD1TiF{2`mgf(=}|v&@=Y*47+ZC zgBtY6O=CTYnNJLrhh zqTCKA*FL8OD^chU-N9mI-yrM{`ZM*)X+QA$3!>AhGzWes@`HXwEcUu#RBlbyGIxyw z#)0c~U=y3J*W^;4%53HLZ8>zk0;axkz&KzWFb)_8j0462K?Yz7;_6^pU2!0X_7a1IQ?F>n~{20MWR zX2CCaGWIk02)qMc0cSxM90Uh|4gR=;u`j?U;39Yy1YiMd2L+G=Hu&py)CX6<_uxD5 zF}MsafEG9o4ufaFE^t3s4}Q3fvCqII@FsW(cwi1xK^c_5@0gR{z^~vZ@FVyddAXN@~I-uxV?idGb*+dv8d7U`w`FQWqhp#H$<7j zDRNZg=mu|%(P*pGYbz9PBpO4vGZ2mDQsb0ZvO$r{J4FsDs+P8>8_F>j`KVq_4`6Gr z+wc3$j?h9mj6wRD@)!cL>5BH!fmQ9vi#l0p$%x=52HcNAZ_u;l9T^^(r=D+3tVX9LeF;Oy%G?(>^O$c9^D&v>)l*G_SSGXN_w=!Lde4A{uO$Clop%V&S4XL%D zoz2c=b37RdW(jj?`f@6c97)Sy6jc!%`s>MNBhe=ow zaa_?_seH2Q2llF2$V)G18j6_Scy+97O4EGRzR13-NT-&PWmAv2BTB9#0(H$xyoMFW zv-8y~Mj6k@SRTrDNh0b@mZpqmZzPC}ty0FWsz^GifYfE2&jF28<&_FB7&jL)pw|1u z6#J)XFY@>`Aia*uD*I$Y&}_B_VJPr^nB#G&v?~yc5xj`sgl9rO5_a1w^2~gYDPlR& zvt-6pMx-l^Rijkt4I*SqqwU$Yjn`E$@AvCJ$I9d`VI`HUU367*kB_(*H)=3_V HuEPEXZcS}` literal 0 HcmV?d00001 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);