Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2026-02-23 10:01:08 +00:00
4 changed files with 29 additions and 21 deletions

View File

@@ -57,6 +57,9 @@ environ_free(struct environ *env)
{
struct environ_entry *envent, *envent1;
if (env == NULL)
return;
RB_FOREACH_SAFE(envent, environ, env, envent1) {
RB_REMOVE(environ, env, envent);
free(envent->name);