summaryrefslogtreecommitdiffstats
path: root/sesman/libscp
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-27 15:29:12 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-27 15:29:12 -0700
commite4654b57ca19118277219b6b430c6e0dc7b7984f (patch)
tree2fd0e16d43096619faf208105f91ab33a1c1acf5 /sesman/libscp
parenta9d7c13147419532cc668e797d949413de895be5 (diff)
downloadxrdp-proprietary-e4654b57ca19118277219b6b430c6e0dc7b7984f.tar.gz
xrdp-proprietary-e4654b57ca19118277219b6b430c6e0dc7b7984f.zip
coverity: Resource leak (2nd round)
Diffstat (limited to 'sesman/libscp')
-rw-r--r--sesman/libscp/libscp_v1c.c1
-rw-r--r--sesman/libscp/libscp_v1c_mng.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/sesman/libscp/libscp_v1c.c b/sesman/libscp/libscp_v1c.c
index 848b3437..7d1b9db8 100644
--- a/sesman/libscp/libscp_v1c.c
+++ b/sesman/libscp/libscp_v1c.c
@@ -215,7 +215,6 @@ 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 dc1016db..59762e36 100644
--- a/sesman/libscp/libscp_v1c_mng.c
+++ b/sesman/libscp/libscp_v1c_mng.c
@@ -164,7 +164,6 @@ 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;
}
@@ -181,7 +180,6 @@ 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;
}