Note memory leak

This commit is contained in:
Lassi Kortela 2019-10-13 22:57:27 +03:00
parent 5e9bb704c8
commit 34be865a86
1 changed files with 1 additions and 0 deletions

View File

@ -367,6 +367,7 @@ value_t builtin_get_environment_variables(value_t *args, uint32_t nargs)
const char *pivot;
value_t name, value;
// TODO: memory leak: acc not freed on type error
(void)args;
argcount("get-environment-variables", nargs, 0);
for (pairs = environ; (pair = *pairs); pairs++) {