[389-devel] Please review: [Bug 548535] memory leak in attrcrypt

Noriko Hosoi nhosoi at redhat.com
Sat Feb 6 02:10:04 UTC 2010


https://bugzilla.redhat.com/show_bug.cgi?id=548535

Files:
  ldap/servers/slapd/back-ldbm/dblayer.c
  ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c
  ldap/servers/slapd/back-ldbm/proto-back-ldbm.h

Description:
The attrcrypt module maintains the inst_attrcrypt_state_private
field in the instance structure (ldbm_instance) to store the private
keys.  The area and the space for the private keys are allocated in
attrcrypt_init which is called from dblayer_instance_start.
A backend instance could be closed and restarted multiple times
(for instance, in the bulk_import, which is used by the replica
initialization), but the area had no chance to be freed.
This patch is adding the clean-up code.

[Proposed patch]
  -->  (https://bugzilla.redhat.com/attachment.cgi?id=389229)
git patch file


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6646 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-devel/attachments/20100205/2a73aa16/attachment.bin 


More information about the 389-devel mailing list