]> git.sur5r.net Git - openldap/commitdiff
Fixed a bug related to the deallocation of memory for new_dn and new_ndn,
authorJuan Gomez <gomez@openldap.org>
Wed, 10 Mar 1999 22:17:54 +0000 (22:17 +0000)
committerJuan Gomez <gomez@openldap.org>
Wed, 10 Mar 1999 22:17:54 +0000 (22:17 +0000)
They must not be deallocated since they are used by the cache entry.

servers/slapd/back-ldbm/modrdn.c

index 906e483ff88f8f288c3ac58f15036734635c0298..8af5bbbc7f9ab8e7489ba08f95c90332be17bc50 100644 (file)
@@ -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 );