aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-03-12 10:59:04 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-03-12 10:59:04 -0400
commitd7beb192daaa10ef07837214371821e5109ed74b (patch)
tree635225d90dbbd1ae547b04748b2e07fa14507c1b
parentrelease: Update NEWS and bump version for 1.22.0-beta1 release (diff)
downloadefl-d7beb192daaa10ef07837214371821e5109ed74b.tar.gz
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 https://phab.enlightenment.org/D8315 Reviewers: raster, cedric, q66, zmike, bu5hm4n, stefan Reviewed By: q66 Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8316
-rw-r--r--src/lib/eo/eo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 301a015859..a95c27a42d 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;
}
}