]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/fdset.c
nspawn: don't free "fds" twice
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Mar 2019 14:22:45 +0000 (15:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Mar 2019 17:11:27 +0000 (18:11 +0100)
commite4077ff6f3e6755a9858f2c10441121b37b7c766
treec246d7cd1793283ccd4f59022274579515256373
parent094eecd29d350e178107cfd786b2a80f4f0c0c3a
nspawn: don't free "fds" twice

Previously both run() and run_container() would free 'fds'. Let's fix
that, and let run() free it but make run_container() already remove all
fds from it, because that's what we actually want to do.

Fixes: #12073
src/nspawn/nspawn.c
src/shared/fdset.c
src/shared/fdset.h