From 6bf5856c3409147384e243262ae5edba6fb5ef64 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 22:59:44 +0100 Subject: [PATCH] dtcm: Coverity 89138 --- cde/programs/dtcm/dtcm/calendarA.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtcm/dtcm/calendarA.c b/cde/programs/dtcm/dtcm/calendarA.c index 40a43cea..88843f3f 100644 --- a/cde/programs/dtcm/dtcm/calendarA.c +++ b/cde/programs/dtcm/dtcm/calendarA.c @@ -2220,7 +2220,7 @@ open_initial_calendar( Calendar *c, CSA_return_code *status) { - char buf[MAXNAMELEN], *loc, *user; + char buf[MAXNAMELEN], *loc, *user = NULL; CSA_flags flags = 0; CSA_extension cb_ext; CSA_extension logon_ext; @@ -2233,6 +2233,7 @@ open_initial_calendar( if ((loc = cm_target2location(c->view->current_calendar)) == NULL) { error_noloc(c, c->view->current_calendar); + free(user); return False; } -- 2.25.1