[Fedora-directory-commits] ldapserver/ldap/servers/slapd/back-ldbm ldbm_config.c, 1.6, 1.7

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Thu Oct 12 21:21:13 UTC 2006


Author: rmeggins

Update of /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13002

Modified Files:
	ldbm_config.c 
Log Message:
Bug(s) fixed: 183903
Bug Description: Memory leak in ldbm_config.c:replace_ldbm_config_value
Reviewed by: nhosoi (Thanks!)
Fix Description: Just needed to call slapi_mods_done(&smods) after the call to slapi_modify_internal_pb().  This is the same as in the other places in the server that perform an internal modify operation.
Platforms tested: RHEL4
Flag Day: no
Doc impact: no



Index: ldbm_config.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/ldbm_config.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ldbm_config.c	11 Apr 2006 02:14:45 -0000	1.6
+++ ldbm_config.c	12 Oct 2006 21:21:10 -0000	1.7
@@ -1760,5 +1760,6 @@
         		   slapi_mods_get_ldapmods_byref(&smods),
         		   NULL, NULL, li->li_identity, 0);
     slapi_modify_internal_pb(&pb);
+    slapi_mods_done(&smods);
     pblock_done(&pb);
 }




More information about the Fedora-directory-commits mailing list