]> git.sur5r.net Git - openldap/commitdiff
cleanup comments of sl_mem_detach()
authorJong Hyuk Choi <jongchoi@openldap.org>
Fri, 30 May 2003 21:44:18 +0000 (21:44 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Fri, 30 May 2003 21:44:18 +0000 (21:44 +0000)
servers/slapd/sl_malloc.c

index e635cafc62dc474ea387c44bf38fe5e8b7142dc4..e40e86480705a5b86d57b2f01d83b66df293add8 100644 (file)
@@ -80,13 +80,6 @@ sl_mem_detach(
 {
        /* separate from context */
        ldap_pvt_thread_pool_setkey( ctx, sl_mem_init, NULL, NULL );
-
-       /* The code used to try to use realloc to shrink the region.
-        * This is unsafe, since realloc may return a different block
-        * of memory from what was passed in, and the region contains
-        * pointers that reference itself. After realloc, these pointers
-        * are invalid, and crashes result.
-        */
 }
 
 void *