c14n: Improve error handling Handle malloc failure from xmlRaiseError. Add context argument to error functions. Remove argument from memory error handler. Use xmlRaiseMemoryError.