[Axl] [PATCH] fix memory trashing
Francis Brosnan Blazquez
francis at aspl.es
Tue Jan 13 16:18:14 CET 2009
> Hello,
Hi Benoit,
> in axl_doc:3164, axl_free is called on a string which is either NULL
> or
> allocated on the stack.
> A more complete fix would be to set detected_encoding to const char*
> if
> it is never meant to be released. It would require much more API
> changes
> though to propagate that type.
Ok. I've updated axlDocDetectCodification documentation to state that
the handler must configure an static string on "detected" parameter. Now
the "detected" parameter is a const char **.
Thanks for reporting Benoit. Cheers!
> Regards,
> Benoît AMIAUX
--
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.
More information about the Axl
mailing list