mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Merge pull request #3191 from marcstern/v2/pr/mem_leak_re
Memory leaks + enhanced logging
This commit is contained in:
@@ -1475,7 +1475,8 @@ void sec_audit_logger_json(modsec_rec *msr) {
|
||||
/* Unlock the mutex we used to serialise access to the audit log file. */
|
||||
rc = apr_global_mutex_unlock(msr->modsecurity->auditlog_lock);
|
||||
if (rc != APR_SUCCESS) {
|
||||
msr_log(msr, 1, "Audit log: Failed to unlock global mutex: %s",
|
||||
msr_log(msr, 1, "Audit log: Failed to unlock global mutex '%s': %s",
|
||||
apr_global_mutex_lockfile(msr->modsecurity->auditlog_lock),
|
||||
get_apr_error(msr->mp, rc));
|
||||
}
|
||||
|
||||
@@ -2256,7 +2257,8 @@ void sec_audit_logger_native(modsec_rec *msr) {
|
||||
/* Unlock the mutex we used to serialise access to the audit log file. */
|
||||
rc = apr_global_mutex_unlock(msr->modsecurity->auditlog_lock);
|
||||
if (rc != APR_SUCCESS) {
|
||||
msr_log(msr, 1, "Audit log: Failed to unlock global mutex: %s",
|
||||
msr_log(msr, 1, "Audit log: Failed to unlock global mutex '%s': %s",
|
||||
apr_global_mutex_lockfile(msr->modsecurity->auditlog_lock),
|
||||
get_apr_error(msr->mp, rc));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user