From b522af189ecd3c3511773a427bb4b97eb82f30c4 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Thu, 6 Nov 2014 14:40:47 +0200 Subject: [PATCH] common: always va_end(ap) on error before bailing out. --- src/common/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.7.4