diff options
author | 2018-04-26 12:42:18 -0400 | |
---|---|---|
committer | 2018-04-26 12:44:37 -0400 | |
commit | 4abede50105a018ef7ac59d9273de3fe15ebd5fe (patch) | |
tree | 1ca9924ace33a7955deac1fe47b19bdfb07caae1 /vnfs/VES5.0/evel/evel-library/code/evel_library/evel_other.c | |
parent | b53e0157ea5952f6b46f1ac5a36aac686c0e474e (diff) |
Supports 3rd party json for measurements
Issue-ID: CERT-14
Change-Id: Ib0fa11fc5978a4785a056f37198947120b3979a8
Signed-off-by: Gokul Singaraju <gs244f@att.com>
Diffstat (limited to 'vnfs/VES5.0/evel/evel-library/code/evel_library/evel_other.c')
-rw-r--r-- | vnfs/VES5.0/evel/evel-library/code/evel_library/evel_other.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_other.c b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_other.c index b238e389..360f5b91 100644 --- a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_other.c +++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_other.c @@ -200,7 +200,6 @@ void evel_other_field_add_namedarray(EVENT_OTHER * other, const char *hashname, *****************************************************************************/ void evel_other_field_add_jsonobj(EVENT_OTHER * other, EVEL_JSON_OBJECT *jsonobj) { - OTHER_FIELD * other_field = NULL; EVEL_ENTER(); /***************************************************************************/ @@ -471,6 +470,8 @@ void evel_json_encode_other(EVEL_JSON_BUFFER * jbuf, void evel_free_other(EVENT_OTHER * event) { OTHER_FIELD * other_field = NULL; + EVEL_JSON_OBJECT * jsonobjp = NULL; + DLIST_ITEM * other_field_item = NULL; EVEL_ENTER(); @@ -495,6 +496,15 @@ void evel_free_other(EVENT_OTHER * event) free(other_field); other_field = dlist_pop_last(&event->namedvalues); } + + jsonobjp = dlist_pop_last(&event->jsonobjects); + while (jsonobjp != NULL) + { + evel_free_jsonobject( jsonobjp ); + + jsonobjp = dlist_pop_last(&event->jsonobjects); + } + evel_free_header(&event->header); EVEL_EXIT(); |