summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-28 18:22:23 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-31 19:09:20 +0100
commit3c747da38ca2f0642b4811812f6e2e2e1449a622 (patch)
treec061e0c2396df65017429312f14c64484d6b47db /src
parent96d66d89c9ba3cc936a8d8217370c70292a6abb7 (diff)
nspawn: fix minor memory leak
When rebooting nspawn containers about 400 times we'd otherwise hit the fd limit and refuse further reboots.
Diffstat (limited to 'src')
-rw-r--r--src/shared/ptyfwd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/ptyfwd.c b/src/shared/ptyfwd.c
index 786752ea94..63e81f4894 100644
--- a/src/shared/ptyfwd.c
+++ b/src/shared/ptyfwd.c
@@ -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)