Skip to content

Commit

Permalink
optimize destroying speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Apr 11, 2022
1 parent c6f1127 commit f4a1d4e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions json_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,6 @@ static void __destroy_json_members(json_object_t *obj)
list_for_each_safe(pos, tmp, &obj->head)
{
memb = list_entry(pos, json_member_t, list);
list_del(pos);
rb_erase(&memb->rb, &obj->root);
__destroy_json_value(&memb->value);
free(memb);
}
Expand Down

0 comments on commit f4a1d4e

Please sign in to comment.