aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}