Prechádzať zdrojové kódy

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

Rich Megginson 19 rokov pred
rodič
commit
131b7fe13a

+ 1 - 0
ldap/servers/slapd/back-ldbm/ldbm_config.c

@@ -1760,5 +1760,6 @@ void replace_ldbm_config_value(char *conftype, char *val, struct ldbminfo *li)
         		   slapi_mods_get_ldapmods_byref(&smods),
         		   NULL, NULL, li->li_identity, 0);
     slapi_modify_internal_pb(&pb);
+    slapi_mods_done(&smods);
     pblock_done(&pb);
 }