From: Peter Howkins Date: Wed, 4 Jul 2018 22:05:57 +0000 (+0100) Subject: dtcm: Coverity 89369 X-Git-Tag: 2.3.0a~173 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bab89de6ffc324dbb8f89a00f00cf4b8d928f796;p=oweals%2Fcde.git dtcm: Coverity 89369 --- 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);