Re: Memory leak in inputstream.c

2014-01-10 Thread Michael Drake
In article <52cec8b6@gmx.de>, Ralf Junker wrote: > If an unsupported encoding is passed to hubbub_parser_create(), > libparserutils/src/input/inputstream.c will cause a memory leak because > is does not free allocated objects before returning. Thanks for spotting that. Fixed on master.

Memory leak in inputstream.c

2014-01-09 Thread Ralf Junker
If an unsupported encoding is passed to hubbub_parser_create(), libparserutils/src/input/inputstream.c will cause a memory leak because is does not free allocated objects before returning. Here is a proposed fix, I hope you find the context in parserutils_inputstream_create(): if (enc