eidenv: Avoid memory leak

This commit is contained in:
Jakub Jelen 2021-06-18 09:19:23 +02:00 committed by Jakub Jelen
parent d90048e5bb
commit d34e84c78d
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ static void exportprint(const char *key, const char *val)
strcat(cp, "=");
strcat(cp, val);
putenv(cp);
free(cp);
}
} else
printf("%s: %s\n", key, val);