diff options
Diffstat (limited to 'sesman/sessvc/sessvc.c')
-rw-r--r-- | sesman/sessvc/sessvc.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |