From cadad6e181d2a67698e5eb7cacd6b233ae29eb97 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 14 Feb 2012 13:45:24 -0800 Subject: /tmp cleanup --- sesman/sessvc/sessvc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sesman/sessvc/sessvc.c') diff --git a/sesman/sessvc/sessvc.c b/sesman/sessvc/sessvc.c index 088f4f51..1ca32b00 100644 --- a/sesman/sessvc/sessvc.c +++ b/sesman/sessvc/sessvc.c @@ -86,6 +86,7 @@ main(int argc, char** argv) if (argc < 3) { g_writeln("xrdp-sessvc: exiting, not enough parameters"); + g_deinit(); return 1; } g_signal_kill(term_signal_handler); /* SIGKILL */ @@ -101,6 +102,7 @@ main(int argc, char** argv) if (chansrv_pid == -1) { g_writeln("xrdp-sessvc: fork error"); + g_deinit(); return 1; } else if (chansrv_pid == 0) /* child */ @@ -110,6 +112,7 @@ main(int argc, char** argv) g_execlp3(exe_path, "xrdp-chansrv", 0); /* should not get here */ g_writeln("xrdp-sessvc: g_execlp3() failed"); + g_deinit(); return 1; } lerror = 0; -- cgit v1.2.1