summaryrefslogtreecommitdiffstats
path: root/sesman/scp_v1_mng.c
diff options
context:
space:
mode:
authormetalefty <meta@vmeta.jp>2016-10-24 23:10:45 +0900
committerGitHub <noreply@github.com>2016-10-24 23:10:45 +0900
commit34378ea386134f017da62bf0c06916506379f92b (patch)
tree6314996584bd7cd6606d482fa3c33ecfe5306d79 /sesman/scp_v1_mng.c
parentb79ad54bd3ecd624bf434f5e01b1496a93722297 (diff)
parentb28a986071ba3ee1bb8aac7dce7b211ad4f07504 (diff)
downloadxrdp-proprietary-34378ea386134f017da62bf0c06916506379f92b.tar.gz
xrdp-proprietary-34378ea386134f017da62bf0c06916506379f92b.zip
Merge pull request #450 from proski/memleak
Fixing memory leaks
Diffstat (limited to 'sesman/scp_v1_mng.c')
-rw-r--r--sesman/scp_v1_mng.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sesman/scp_v1_mng.c b/sesman/scp_v1_mng.c
index 29496466..61789cce 100644
--- a/sesman/scp_v1_mng.c
+++ b/sesman/scp_v1_mng.c
@@ -50,7 +50,6 @@ scp_v1_mng_process(struct SCP_CONNECTION *c, struct SCP_SESSION *s)
scp_v1s_mng_deny_connection(c, "Login failed");
log_message(LOG_LEVEL_INFO,
"[MNG] Login failed for user %s. Connection terminated", s->username);
- scp_session_destroy(s);
auth_end(data);
return;
}
@@ -61,7 +60,6 @@ scp_v1_mng_process(struct SCP_CONNECTION *c, struct SCP_SESSION *s)
scp_v1s_mng_deny_connection(c, "Access to Terminal Server not allowed.");
log_message(LOG_LEVEL_INFO,
"[MNG] User %s not allowed on TS. Connection terminated", s->username);
- scp_session_destroy(s);
auth_end(data);
return;
}
@@ -105,7 +103,6 @@ scp_v1_mng_process(struct SCP_CONNECTION *c, struct SCP_SESSION *s)
}
/* cleanup */
- scp_session_destroy(s);
auth_end(data);
}