Browse Source

Ticket #48969 - nsslapd-auditfaillog always has an explicit path

Description: commit ef2c3c4cc6f966935dbe367dd0d882ae81de3cc4
introduced a RESOURCE_LEAK.
    auditlog.c:180: leaked_storage: Variable "audit_config" going
                    out of scope leaks the storage it points to.

Reviewed by nhosoi (one line commit rule)

(cherry picked from commit 95d820901e7264490bae02b8ca943d09a344d7ac)
Noriko Hosoi 9 years ago
parent
commit
b0fc82233a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ldap/servers/slapd/auditlog.c

+ 1 - 0
ldap/servers/slapd/auditlog.c

@@ -177,6 +177,7 @@ write_auditfail_log_entry( Slapi_PBlock *pb )
         write_audit_file(SLAPD_AUDITFAIL_LOG, operation_get_type(op), dn, change, flag, curtime, pbrc, SLAPD_AUDITFAIL_LOG);
     }
     slapi_ch_free_string(&auditfail_config);
+    slapi_ch_free_string(&audit_config);
 }