object generated code leak memory. #17
This line of
j2s.c generates code that produces a memory leak. So does the analogous line for objects. It leaks a
JsonValue in an effort to duplicate the data. This
JsonValue should be stored in an intermediate variable and freed when it is no longer needed.
This might actually be trickier than it seems because just calling
JsonValueFree() will also free the associated data, which we want to keep. We literally want to free just the
JsonValue wrapper and keep the actual data inside of it.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?