×
Close
The permissions on this repository are being updated. This may take a while.
During this time, you or some of the project's contributors may not be able
to push to this repository.
Blame SOURCES/0049-Ticket-48969-nsslapd-auditfaillog-always-has-an-expl.patch
Branch: 7231508e626774a8b6ccf96fed0789527d1bfec0
7c7f29
From 009e862b170b9a9037852952640558c03ecda481 Mon Sep 17 00:00:00 2001
7c7f29
From: Noriko Hosoi <nhosoi@redhat.com>
7c7f29
Date: Thu, 1 Sep 2016 11:34:53 -0700
7c7f29
Subject: [PATCH 49/49] Ticket #48969 - nsslapd-auditfaillog always has an
7c7f29
explicit path
7c7f29
7c7f29
Description: commit ef2c3c4cc6f966935dbe367dd0d882ae81de3cc4
7c7f29
introduced a RESOURCE_LEAK.
7c7f29
auditlog.c:180: leaked_storage: Variable "audit_config" going
7c7f29
out of scope leaks the storage it points to.
7c7f29
7c7f29
Reviewed by nhosoi (one line commit rule)
7c7f29
7c7f29
(cherry picked from commit 95d820901e7264490bae02b8ca943d09a344d7ac)
7c7f29
(cherry picked from commit b0fc82233a5ea929c5fad835f9e825a8f0b97968)
7c7f29
(cherry picked from commit fc1310e352e124d66d58d0a3e86d45c5573cbfb2)
7c7f29
---
7c7f29
ldap/servers/slapd/auditlog.c | 1 +
7c7f29
1 file changed, 1 insertion(+)
7c7f29
7c7f29
diff --git a/ldap/servers/slapd/auditlog.c b/ldap/servers/slapd/auditlog.c
7c7f29
index 85d136c..74d1b46 100644
7c7f29
--- a/ldap/servers/slapd/auditlog.c
7c7f29
+++ b/ldap/servers/slapd/auditlog.c
7c7f29
@@ -177,6 +177,7 @@ write_auditfail_log_entry( Slapi_PBlock *pb )
7c7f29
write_audit_file(SLAPD_AUDITFAIL_LOG, operation_get_type(op), dn, change, flag, curtime, pbrc, SLAPD_AUDITFAIL_LOG);
7c7f29
}
7c7f29
slapi_ch_free_string(&auditfail_config);
7c7f29
+ slapi_ch_free_string(&audit_config);
7c7f29
}
7c7f29
7c7f29
7c7f29
--
7c7f29
2.4.11
7c7f29