This does not seem to be completely correct, the init function is called during initialization and you freed the "prefix" string there, but somewhat later it is used by the reader. So this creates a use-after-free condition. The proper solution would be to create a log_reader_options_free() function and call it from the source driver's free method. I'll try to fix this later. On Thu, 2008-05-15 at 17:35 +0900, Park Eun soo wrote:
Hi,
I had some memory leaks when reload conf. with HUP signal.
I find that log_reader_option 'prefix' causes memory leaks and make patch.
Please check this patch is correct or not.
Regards,
Park
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
-- Bazsi