From: Krisztian Litkey Date: Thu, 6 Nov 2014 12:40:47 +0000 (+0200) Subject: common: always va_end(ap) on error before bailing out. X-Git-Tag: v0.0.65~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b522af189ecd3c3511773a427bb4b97eb82f30c4;p=profile%2Fivi%2Fmurphy.git common: always va_end(ap) on error before bailing out. --- diff --git a/src/common/json.c b/src/common/json.c index 69a412a..c275330 100644 --- a/src/common/json.c +++ b/src/common/json.c @@ -219,7 +219,7 @@ mrp_json_t *mrp_json_add_array(mrp_json_t *o, const char *key, a = mrp_json_create(MRP_JSON_ARRAY); if (a == NULL) - return NULL; + goto fail; switch (type) { case MRP_JSON_STRING: