From 3bb31876e797c7a13b4ffb7d67a5d710cbf4fab3 Mon Sep 17 00:00:00 2001 From: Laxmikant Rashinkar Date: Sat, 19 Jul 2014 11:56:00 -0700 Subject: coverity: fixed resolution leak issues --- sesman/tools/sesadmin.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sesman/tools/sesadmin.c') diff --git a/sesman/tools/sesadmin.c b/sesman/tools/sesadmin.c index 25af850b..979a22f9 100644 --- a/sesman/tools/sesadmin.c +++ b/sesman/tools/sesadmin.c @@ -179,16 +179,16 @@ void cmndList(struct SCP_CONNECTION *c) (dsl[idx]).idle_days, (dsl[idx]).idle_hours, (dsl[idx]).idle_minutes, \ (dsl[idx]).conn_year, (dsl[idx]).conn_month, (dsl[idx]).conn_day, (dsl[idx]).conn_hour, (dsl[idx]).conn_minute); } - - if (0 != dsl) - { - g_free(dsl); - } } else { printf("No sessions.\n"); } + + if (0 != dsl) + { + g_free(dsl); + } } void cmndKill(struct SCP_CONNECTION *c, struct SCP_SESSION *s) -- cgit v1.2.1