From: kamaljeet Date: Mon, 14 Jan 2019 12:40:45 +0000 (+0530) Subject: Coverty issue 109802 X-Git-Tag: submit/tizen_4.0/20190114.130152^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_4.0_unified;p=platform%2Fcore%2Fapi%2Femail.git Coverty issue 109802 Change-Id: I69d81424679eaf052d08eb671e76173d601372cc Signed-off-by: kamaljeet --- diff --git a/src/email.c b/src/email.c index ee23c9d..a9cf5d3 100755 --- a/src/email.c +++ b/src/email.c @@ -560,6 +560,7 @@ int email_set_message_sent_cb(email_h handle, email_message_sent_cb cb, void *us if (cbcontext == NULL) { /* LCOV_EXCL_START */ SECURE_SLOGE("[%s] calloc failed", __FUNCTION__); + email_destroy_message((email_h)msg_s); return EMAIL_ERROR_OUT_OF_MEMORY; /* LCOV_EXCL_STOP */ }