Docs.
Fix copying hook_response_complete instead of hook_transaction_complete.
Fix memory leak when memory allocation fails.
Ignore Coverity warning about not checking the return code of htp_hook_run_all().
Tidy up casts.
Use umask() before mkstemp().