daandemeyer / rpms / systemd

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