mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Fix segmentation fault in the regression tests
This commit is contained in:
@@ -88,9 +88,13 @@ Rules::~Rules() {
|
||||
}
|
||||
}
|
||||
/** Cleanup audit log */
|
||||
audit_log->refCountDecreaseAndCheck();
|
||||
if (audit_log) {
|
||||
audit_log->refCountDecreaseAndCheck();
|
||||
}
|
||||
/** Cleanup debug log */
|
||||
debugLog->refCountDecreaseAndCheck();
|
||||
if (debugLog) {
|
||||
debugLog->refCountDecreaseAndCheck();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user