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
This commit is contained in:
Christopher Michael 2019-03-12 10:59:04 -04:00
parent a9c174c4ee
commit d7beb192da
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}