Re: [OPEN-ILS-DEV] osrf_json_xml.c: memory leak and apparent bug

2008-01-29 Thread Bill Erickson
Scott McKellar wrote: At the end of startElementHandler(), there is a branch of code that runs when the name passed in is boolean. It constructs a jsonObject of type JSON_BOOL but doesn't do anything with it. The pointer goes out of scope and the memory leaks. As a result, this branch of

[OPEN-ILS-DEV] osrf_json_xml.c: memory leak and apparent bug

2008-01-27 Thread Scott McKellar
At the end of startElementHandler(), there is a branch of code that runs when the name passed in is boolean. It constructs a jsonObject of type JSON_BOOL but doesn't do anything with it. The pointer goes out of scope and the memory leaks. As a result, this branch of logic has no effect at all,