Fix memory leak (#228)
Fix memory leak (#228)

Frees the json pointer if it was allocated before attempting to modify it.

Co-authored-by: WestleyK <24d8d0ceb3e1a04546b4c5c8c2cd1ddc163e6fe9@nym.hush.com>
clibs/clib,clibs/clib,clibs/clib,clibs/clib