[vte] pty: Fix mem leak



commit 304e29d8a603828f42410ceac39ad803fcac475b
Author: Christian Persch <chpe src gnome org>
Date:   Sat Nov 18 19:10:10 2017 +0100

    pty: Fix mem leak

 src/pty.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]