Note memory leak
This commit is contained in:
parent
5e9bb704c8
commit
34be865a86
|
@ -367,6 +367,7 @@ value_t builtin_get_environment_variables(value_t *args, uint32_t nargs)
|
||||||
const char *pivot;
|
const char *pivot;
|
||||||
value_t name, value;
|
value_t name, value;
|
||||||
|
|
||||||
|
// TODO: memory leak: acc not freed on type error
|
||||||
(void)args;
|
(void)args;
|
||||||
argcount("get-environment-variables", nargs, 0);
|
argcount("get-environment-variables", nargs, 0);
|
||||||
for (pairs = environ; (pair = *pairs); pairs++) {
|
for (pairs = environ; (pair = *pairs); pairs++) {
|
||||||
|
|
Loading…
Reference in New Issue