From: Juan Gomez Date: Wed, 10 Mar 1999 22:17:54 +0000 (+0000) Subject: Fixed a bug related to the deallocation of memory for new_dn and new_ndn, X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~414 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f8a0a67e5fabb13591670a0e36a51dfd6a2f4c6c;p=openldap Fixed a bug related to the deallocation of memory for new_dn and new_ndn, They must not be deallocated since they are used by the cache entry. --- diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index 906e483ff8..8af5bbbc7f 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -336,8 +336,10 @@ ldbm_back_modrdn( rc = 0; return_results: - if( new_dn != NULL ) free( new_dn ); - if( new_ndn != NULL ) free( new_ndn ); + /* NOTE: + * new_dn and new_ndn are not deallocated because they are used by + * the cache entry. + */ if( p_dn != NULL ) free( p_dn ); if( p_ndn != NULL ) free( p_ndn );