dtcm: Coverity 89369
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 22:05:57 +0000 (23:05 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 22:05:57 +0000 (23:05 +0100)
cde/programs/dtcm/dtcm/browser.c

index 75fe69a13366133f0d73262e4617d1fd2e616494..f0b60186719274e033207069ec1f01b836dfcbf9 100644 (file)
@@ -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);