[vte/vte-0-48] pty: Fix mem leak



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

    pty: Fix mem leak
    
    (cherry picked from commit 304e29d8a603828f42410ceac39ad803fcac475b)

 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]