From: Peter Howkins Date: Wed, 4 Jul 2018 21:07:44 +0000 (+0100) Subject: dtcm: Coverity 88514 X-Git-Tag: 2.3.0a~184 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c056ef018958dfe8fce96368b7df1506507f523;p=oweals%2Fcde.git dtcm: Coverity 88514 --- diff --git a/cde/programs/dtcm/dtcm/dnd.c b/cde/programs/dtcm/dtcm/dnd.c index 8c71090f..1c168716 100644 --- a/cde/programs/dtcm/dtcm/dnd.c +++ b/cde/programs/dtcm/dtcm/dnd.c @@ -924,9 +924,14 @@ ApptDragStart( free(context); return; } - apptstr = parse_attrs_to_string(appt, (Props *)calendar->properties, - attrs_to_string(appt->attrs, - appt->count)); + + { + char *attr_string = attrs_to_string(appt->attrs, appt->count); + apptstr = parse_attrs_to_string(appt, (Props *)calendar->properties, + attr_string); + + free(attr_string); + } free_appt_struct(&appt); context->data = apptstr;