From 808fd233586768de05a41a7a0c45aee710e9bac6 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 6 Jan 2017 11:12:59 -0300 Subject: [PATCH] Avoids a second initialization of the Audit Log class --- src/parser/driver.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/parser/driver.cc b/src/parser/driver.cc index 7ef8b9c5..84eb8c27 100644 --- a/src/parser/driver.cc +++ b/src/parser/driver.cc @@ -29,16 +29,10 @@ Driver::Driver() : RulesProperties(), trace_scanning(false), trace_parsing(false), - lastRule(NULL) { - m_auditLog = new audit_log::AuditLog(); - m_auditLog->refCountIncrease(); - } + lastRule(NULL) { } Driver::~Driver() { - if (m_auditLog != NULL) { - m_auditLog->refCountDecreaseAndCheck(); - } delete loc.back(); }