fix(add_gtag): parser memory free

This commit is contained in:
hxy7yx
2024-01-10 17:24:00 +08:00
parent 4240f313e2
commit 7bb4cfbf0d
2 changed files with 2 additions and 8 deletions
+1 -7
View File
@@ -467,17 +467,11 @@ int neu_json_decode_gtag_json(void *json_obj, neu_json_gtag_t *gtag_p)
gtag_p->n_tag = arr.len;
gtag_p->tags = arr.tags;
goto decode_exit;
return 0;
decode_fail:
free(gtag_elems[0].v.val_str);
return -1;
decode_exit:
if (json_obj != NULL) {
neu_json_decode_free(json_obj);
}
return 0;
}
void neu_json_decode_gtag_fini(neu_json_gtag_t *gtag)