[vte] Don't leak a FD on error
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] Don't leak a FD on error
- Date: Tue, 30 Mar 2010 19:51:09 +0000 (UTC)
commit 1665665bc4b66fe6e8b25466cf4768f026741212
Author: Christian Persch <chpe gnome org>
Date: Tue Mar 30 21:10:15 2010 +0200
Don't leak a FD on error
src/pty.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/pty.c b/src/pty.c
index e59d48a..b3703e8 100644
--- a/src/pty.c
+++ b/src/pty.c
@@ -1203,6 +1203,8 @@ failure:
close(tmp[1]);
if (tunnel != -1)
close(tunnel);
+ if (_vte_pty_helper_tunnel != -1)
+ close(_vte_pty_helper_tunnel);
_vte_pty_helper_pid = -1;
_vte_pty_helper_tunnel = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]