diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-04 16:18:24 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-04 16:18:24 +0200 |
commit | 450dbb986b10606a4052a934fb6ad9006eba6a4b (patch) | |
tree | e7547eec0595b4fac67792f2a2ed3615310b9fd0 /src/b_export.c | |
parent | later (diff) | |
download | 42-minishell-450dbb986b10606a4052a934fb6ad9006eba6a4b.tar.gz 42-minishell-450dbb986b10606a4052a934fb6ad9006eba6a4b.tar.bz2 42-minishell-450dbb986b10606a4052a934fb6ad9006eba6a4b.tar.xz 42-minishell-450dbb986b10606a4052a934fb6ad9006eba6a4b.tar.zst 42-minishell-450dbb986b10606a4052a934fb6ad9006eba6a4b.zip |
Freed leak
Diffstat (limited to 'src/b_export.c')
-rw-r--r-- | src/b_export.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/b_export.c b/src/b_export.c index fa9a6d1..4e3b4c7 100644 --- a/src/b_export.c +++ b/src/b_export.c @@ -118,6 +118,7 @@ uint8_t { ft_sprintf(fmt, "%s=%s", *ptr, varval); b_add_to_env_from_globals(*ptr, fmt, msh); + ft_memdel((void*)&varval); } } else if (next == FALSE && check_equals(*ptr) == TRUE) |