summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-23 01:05:55 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-29 21:08:37 +0200
commit2feceb5eb945d430999a8130e14c512af35b21d9 (patch)
tree031cf145e6e48fd42a3459ef5a1298b86d27eac4 /src/nspawn/nspawn.c
parent3dfc97634ea1e9bdd075e93c90cc9a6879264e71 (diff)
tree-wide: take benefit of the fact that fdset_free() returns NULL
Diffstat (limited to 'src/nspawn/nspawn.c')
-rw-r--r--src/nspawn/nspawn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index f4721a1c29..cb4e87fd74 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -3338,8 +3338,7 @@ int main(int argc, char *argv[]) {
barrier_set_role(&barrier, BARRIER_PARENT);
- fdset_free(fds);
- fds = NULL;
+ fds = fdset_free(fds);
kmsg_socket_pair[1] = safe_close(kmsg_socket_pair[1]);
rtnl_socket_pair[1] = safe_close(rtnl_socket_pair[1]);