diff options
author | Rich Megginson <rmeggins@redhat.com> | 2006-10-12 22:30:32 +0000 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2006-10-12 22:30:32 +0000 |
commit | 65dd96fe4a1effd42dfecaebd58c384ba7624518 (patch) | |
tree | 535fe27d041173c2b2092581d7edac17a387bb78 /ldap/servers/slapd/modify.c | |
parent | 131b7fe13af04a0dc13bb63591dc589adb5d3230 (diff) | |
download | ds-65dd96fe4a1effd42dfecaebd58c384ba7624518.tar.gz ds-65dd96fe4a1effd42dfecaebd58c384ba7624518.tar.xz ds-65dd96fe4a1effd42dfecaebd58c384ba7624518.zip |
Bug(s) fixed: 185780
Bug Description: one byte memory leak in modify
Reviewed by: nhosoi (Thanks!)
Files: see diff
Branch: HEAD
Fix Description: Just call slapi_ch_free_string() with the mod->mod_type. This is safe to call with NULL.
Platforms tested: RHEL4
Flag Day: no
Doc impact: no
Diffstat (limited to 'ldap/servers/slapd/modify.c')
-rw-r--r-- | ldap/servers/slapd/modify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ldap/servers/slapd/modify.c b/ldap/servers/slapd/modify.c index 0b578a83..c2bb3dd7 100644 --- a/ldap/servers/slapd/modify.c +++ b/ldap/servers/slapd/modify.c @@ -202,6 +202,7 @@ do_modify( Slapi_PBlock *pb ) send_ldap_result( pb, LDAP_INVALID_SYNTAX, NULL, ebuf, 0, NULL ); slapi_ch_free((void **)&type); ber_bvecfree(mod->mod_bvalues); + slapi_ch_free_string(&mod->mod_type); slapi_ch_free((void **)&mod); goto free_and_return; } |