dtcm: Coverity 88113
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 22:17:18 +0000 (23:17 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 22:17:18 +0000 (23:17 +0100)
cde/programs/dtcm/server/lookup.c

index 92d231b5515d15efe2ee7110532997babaab1b4a..31b921f3b57f4be493eafbc506c0d3d313d2c7b5 100644 (file)
@@ -498,7 +498,7 @@ _EnumerateSequence(
        CSA_return_code stat2 = CSA_SUCCESS;
        cms_entry       *eptr;
        time_t          fsttick, tick;
-       RepeatEventState *restate;
+       RepeatEventState *restate = NULL;
 
        eptr = (cms_entry *)lnode->data;
        fsttick = eptr->key.time;
@@ -562,6 +562,7 @@ _EnumerateSequence(
                        eptr->attrs[CSA_ENTRY_ATTR_END_DATE_I].value->\
                                item.date_time_value = etime;
        }
+       free(restate);
 
        return (stat);
 }