From bab89de6ffc324dbb8f89a00f00cf4b8d928f796 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 23:05:57 +0100 Subject: [PATCH] dtcm: Coverity 89369 --- cde/programs/dtcm/dtcm/browser.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtcm/dtcm/browser.c b/cde/programs/dtcm/dtcm/browser.c index 75fe69a1..f0b60186 100644 --- a/cde/programs/dtcm/dtcm/browser.c +++ b/cde/programs/dtcm/dtcm/browser.c @@ -941,7 +941,11 @@ nt */ scrub_attr_list(appt); - appointment_buf = parse_attrs_to_string(appt, p, attrs_to_string(appt->attrs, appt->count)); + { + char *attrstring = attrs_to_string(appt->attrs, appt->count); + appointment_buf = parse_attrs_to_string(appt, p, attrstring); + free(attrstring); + } free_appt_struct(&appt); -- 2.25.1