diff options
author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-19 11:56:00 -0700 |
---|---|---|
committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-19 11:56:00 -0700 |
commit | 3bb31876e797c7a13b4ffb7d67a5d710cbf4fab3 (patch) | |
tree | 8888abf5bfb3b666027746c78a7466e09fa3a557 /sesman/libscp | |
parent | c64b1544752547cede30647bb03ab1bbbc06d079 (diff) | |
download | xrdp-proprietary-3bb31876e797c7a13b4ffb7d67a5d710cbf4fab3.tar.gz xrdp-proprietary-3bb31876e797c7a13b4ffb7d67a5d710cbf4fab3.zip |
coverity: fixed resolution leak issues
Diffstat (limited to 'sesman/libscp')
-rw-r--r-- | sesman/libscp/libscp_v1c.c | 1 | ||||
-rw-r--r-- | sesman/libscp/libscp_v1c_mng.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sesman/libscp/libscp_v1c.c b/sesman/libscp/libscp_v1c.c index 7d1b9db8..848b3437 100644 --- a/sesman/libscp/libscp_v1c.c +++ b/sesman/libscp/libscp_v1c.c @@ -215,6 +215,7 @@ scp_v1c_get_session_list(struct SCP_CONNECTION *c, int *scount, if (cmd != 42) { + g_free(ds); return SCP_CLIENT_STATE_SEQUENCE_ERR; } diff --git a/sesman/libscp/libscp_v1c_mng.c b/sesman/libscp/libscp_v1c_mng.c index 59762e36..dc1016db 100644 --- a/sesman/libscp/libscp_v1c_mng.c +++ b/sesman/libscp/libscp_v1c_mng.c @@ -164,6 +164,7 @@ scp_v1c_mng_get_session_list(struct SCP_CONNECTION *c, int *scount, if (0 != scp_tcp_force_recv(c->in_sck, c->in_s->data, size - 8)) { log_message(LOG_LEVEL_WARNING, "[v1c_mng:%d] connection aborted: network error", __LINE__); + g_free(ds); return SCP_CLIENT_STATE_NETWORK_ERR; } @@ -180,6 +181,7 @@ scp_v1c_mng_get_session_list(struct SCP_CONNECTION *c, int *scount, if (cmd != SCP_CMD_MNG_LIST) /* session list */ { log_message(LOG_LEVEL_WARNING, "[v1c_mng:%d] connection aborted: sequence error", __LINE__); + g_free(ds); return SCP_CLIENT_STATE_SEQUENCE_ERR; } |