]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: fix minor memory leak
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Oct 2015 17:22:23 +0000 (18:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 31 Oct 2015 18:09:20 +0000 (19:09 +0100)
When rebooting nspawn containers about 400 times we'd otherwise hit the
fd limit and refuse further reboots.

src/shared/ptyfwd.c

index 786752ea941b4d38ef8d09dff2eaa54f60870ced..63e81f489490ed3af4bb8902ed8a754799815c31 100644 (file)
@@ -413,6 +413,7 @@ PTYForward *pty_forward_free(PTYForward *f) {
                 sd_event_source_unref(f->stdin_event_source);
                 sd_event_source_unref(f->stdout_event_source);
                 sd_event_source_unref(f->master_event_source);
+                sd_event_source_unref(f->sigwinch_event_source);
                 sd_event_unref(f->event);
 
                 if (f->saved_stdout)