diff options
author | Ted Gould <ted@gould.cx> | 2012-08-21 15:38:03 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-08-21 15:38:03 -0500 |
commit | f41121dfd7f7ee9cb10d552abe6e3f81e75fbd5f (patch) | |
tree | 6db23da94459b869a762d450655698a709bcb04f /src | |
parent | 1dd64bd6eff28e9b0e9270a9462db0d02a4e9774 (diff) | |
download | libpam-freerdp2-f41121dfd7f7ee9cb10d552abe6e3f81e75fbd5f.tar.gz libpam-freerdp2-f41121dfd7f7ee9cb10d552abe6e3f81e75fbd5f.tar.bz2 libpam-freerdp2-f41121dfd7f7ee9cb10d552abe6e3f81e75fbd5f.zip |
If we don't fork, then clean up
Diffstat (limited to 'src')
-rw-r--r-- | src/pam-freerdp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c index 14a8f6b..9fc43ed 100644 --- a/src/pam-freerdp.c +++ b/src/pam-freerdp.c @@ -299,6 +299,8 @@ pam_sm_open_session (pam_handle_t *pamh, int flags, int argc, const char ** argv } } else if (pid < 0) { retval = PAM_SYSTEM_ERR; + close(socketfd); + free(buffer); } else { session_pid = pid; } |