update: fixed a leak
This commit is contained in:
parent
7b9009b820
commit
ca8e484183
2 changed files with 5 additions and 4 deletions
5
Makefile
5
Makefile
|
|
@ -6,7 +6,7 @@
|
||||||
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
|
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
|
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
|
||||||
# Updated: 2024/10/12 17:16:48 by maiboyer ### ########.fr #
|
# Updated: 2024/10/14 14:00:30 by maiboyer ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
|
@ -43,7 +43,8 @@ ifeq ($(shell uname), Darwin)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS_ADDITIONAL += -DNVALGRIND
|
CFLAGS_ADDITIONAL ?=
|
||||||
|
#CFLAGS_ADDITIONAL += -DNVALGRIND
|
||||||
|
|
||||||
# TODO: REMOVE THIS WHEN FINISHING THIS:
|
# TODO: REMOVE THIS WHEN FINISHING THIS:
|
||||||
# CFLAGS_ADDITIONAL += -fsanitize=memory -fno-omit-frame-pointer -fsanitize-memory-track-origins #-fuse-ld=lld -ffunction-sections -fdata-sections -Wl,--allow-multiple
|
# CFLAGS_ADDITIONAL += -fsanitize=memory -fno-omit-frame-pointer -fsanitize-memory-track-origins #-fuse-ld=lld -ffunction-sections -fdata-sections -Wl,--allow-multiple
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/03/28 14:40:38 by rparodi #+# #+# */
|
/* Created: 2024/03/28 14:40:38 by rparodi #+# #+# */
|
||||||
/* Updated: 2024/10/14 13:57:51 by maiboyer ### ########.fr */
|
/* Updated: 2024/10/14 14:01:19 by maiboyer ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -79,7 +79,7 @@ void append_default_env(t_hashmap_env *env)
|
||||||
(void)((tmp != NULL) && (str_free(*tmp), 1));
|
(void)((tmp != NULL) && (str_free(*tmp), 1));
|
||||||
if (u64_to_str(shlvl + 1, &tmp2))
|
if (u64_to_str(shlvl + 1, &tmp2))
|
||||||
me_abort("Failed to set SHLVL");
|
me_abort("Failed to set SHLVL");
|
||||||
hmap_env_insert(env, str_clone(key), str_clone(tmp2));
|
hmap_env_insert(env, str_clone(key), tmp2);
|
||||||
key = "PATH";
|
key = "PATH";
|
||||||
tmp = hmap_env_get(env, &key);
|
tmp = hmap_env_get(env, &key);
|
||||||
if (tmp == NULL)
|
if (tmp == NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue