Fix another memleak in json set