commit 08ad02e5f0cfeda1086f20f42ba91edfb33992fc
parent c6d012f63aebeec0c173d7da30876816a42e6262
Author: Ember Sawady <ecs@d2evs.net>
Date: Fri, 13 Jan 2023 03:10:40 +0000
os: free envp in @fini
Signed-off-by: Ember Sawady <ecs@d2evs.net>
Diffstat:
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/os/+freebsd/environ.ha b/os/+freebsd/environ.ha
@@ -33,6 +33,7 @@ let args_static: [32]str = [""...];
if (rt::argc >= len(args_static)) {
free(args);
};
+ free(envp);
};
// Looks up an environment variable and returns its value, or void if unset.
diff --git a/os/+linux/environ+libc.ha b/os/+linux/environ+libc.ha
@@ -33,6 +33,7 @@ let args_static: [32]str = [""...];
if (rt::argc >= len(args_static)) {
free(args);
};
+ free(envp);
};
// Looks up an environment variable and returns its value, or void if unset.
diff --git a/os/+linux/environ.ha b/os/+linux/environ.ha
@@ -33,6 +33,7 @@ let args_static: [32]str = [""...];
if (rt::argc >= len(args_static)) {
free(args);
};
+ free(envp);
};
// Looks up an environment variable and returns its value, or void if unset.