26 lines
633 B
Diff
26 lines
633 B
Diff
From ddd6dc998d9842369ec20f8e83c380401a8aed02 Mon Sep 17 00:00:00 2001
|
|
From: Christian Persch <chpe@src.gnome.org>
|
|
Date: Sat, 18 Nov 2017 19:10:10 +0100
|
|
Subject: pty: Fix mem leak
|
|
|
|
(cherry picked from commit 304e29d8a603828f42410ceac39ad803fcac475b)
|
|
---
|
|
src/pty.cc | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/pty.cc b/src/pty.cc
|
|
index c1741d2..0c0b001 100644
|
|
--- a/src/pty.cc
|
|
+++ b/src/pty.cc
|
|
@@ -1200,5 +1200,7 @@ vte_pty_spawn_finish(VtePty *pty,
|
|
*child_pid = *(GPid*)pidptr;
|
|
if (error)
|
|
*error = nullptr;
|
|
+
|
|
+ g_free(pidptr);
|
|
return TRUE;
|
|
}
|
|
--
|
|
cgit v0.12
|
|
|