dtcm: Coverity 88107
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 19:23:57 +0000 (20:23 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 19:23:57 +0000 (20:23 +0100)
cde/programs/dtcm/server/cmsfunc.c

index 86dc10f057df8d29497f2121fa9af53256d39f78..787fa4bd281b89be9f47fceef8743f6e5b4fc22d 100644 (file)
@@ -1017,8 +1017,10 @@ cms_update_entry_5_svc(cms_update_args *args, struct svc_req *svcrq)
 
        if (res.stat == CSA_SUCCESS)
                cal->modified = B_TRUE;
-       else
+       else {
+               free(appt);
                return (&res);
+       }
 
        /* do callback */
        cal->rlist = _DtCmsDoV1CbForV4Data(cal->rlist, user, args->pid,