Blame SOURCES/0313-nspawn-fix-minor-memory-leak.patch

17b0f1
From 94f823629031f8849c8dc001d56a2c057531f0f2 Mon Sep 17 00:00:00 2001
17b0f1
From: Lennart Poettering <lennart@poettering.net>
17b0f1
Date: Wed, 28 Oct 2015 18:22:23 +0100
17b0f1
Subject: [PATCH] nspawn: fix minor memory leak
17b0f1
17b0f1
When rebooting nspawn containers about 400 times we'd otherwise hit the
17b0f1
fd limit and refuse further reboots.
17b0f1
17b0f1
Cherry-picked from: 3c747da38ca2f0642b4811812f6e2e2e1449a622
17b0f1
Related: #1331667
17b0f1
---
17b0f1
 src/shared/ptyfwd.c | 1 +
17b0f1
 1 file changed, 1 insertion(+)
17b0f1
17b0f1
diff --git a/src/shared/ptyfwd.c b/src/shared/ptyfwd.c
17b0f1
index 31274a1418..88b3f4e3c4 100644
17b0f1
--- a/src/shared/ptyfwd.c
17b0f1
+++ b/src/shared/ptyfwd.c
17b0f1
@@ -388,6 +388,7 @@ PTYForward *pty_forward_free(PTYForward *f) {
17b0f1
                 sd_event_source_unref(f->stdin_event_source);
17b0f1
                 sd_event_source_unref(f->stdout_event_source);
17b0f1
                 sd_event_source_unref(f->master_event_source);
17b0f1
+                sd_event_source_unref(f->sigwinch_event_source);
17b0f1
                 sd_event_unref(f->event);
17b0f1
 
17b0f1
                 if (f->saved_stdout)