aboutsummaryrefslogtreecommitdiff
path: root/src/pam-freerdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pam-freerdp.c')
-rw-r--r--src/pam-freerdp.c2
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;
}