From c0d26f59078d3e62035fea42ef9311df0029c264 Mon Sep 17 00:00:00 2001 From: Eric MacDonald Date: Thu, 6 Dec 2018 20:40:19 +0000 Subject: [PATCH] Revert "No json_object_put() for the json_obj created by json_object_object_get_ex()." This reverts commit a92c543fd574e027f0de0bd17d8a67090364ef3d. Change-Id: I972e083ac91bd1ecd13b900b417685eda5a4add0 --- mtce-common/src/common/jsonUtil.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mtce-common/src/common/jsonUtil.cpp b/mtce-common/src/common/jsonUtil.cpp index 680a0eaa..092c8387 100644 --- a/mtce-common/src/common/jsonUtil.cpp +++ b/mtce-common/src/common/jsonUtil.cpp @@ -920,6 +920,12 @@ auth_load_cleanup: } json_object_put(raw_obj); } + if (token_obj) json_object_put(token_obj); + if (svccat_obj) json_object_put(svccat_obj); + if (tuple_obj) json_object_put(tuple_obj); + if (end_obj) json_object_put(end_obj); + if (url_obj) json_object_put(type_obj); + if (type_obj) json_object_put(type_obj); return (rc); }