teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

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

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