From 1273cddc53fd15171246afd2667dbe6c9b2dc2e8 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 12 Mar 2019 10:59:04 -0400 Subject: [PATCH] eo: Fix missing varags cleanup Summary: Coverity reports that va_end is never called for p_list when we error out of this function. This patch adds a missing va_end before we error out of here. Fixes Coverity CID1399080 @fix Depends on D8315 Reviewers: raster, cedric, q66, zmike, bu5hm4n, stefan Reviewed By: q66 Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8316 --- src/lib/eo/eo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 301a015..a95c27a 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -1547,6 +1547,7 @@ efl_class_new(const Efl_Class_Description *desc, const Efl_Class *parent_id, ... break; default: ERR("type cannot be INVALID"); + va_end(p_list); return NULL; } } -- 2.7.4