]> git.sur5r.net Git - openldap/commitdiff
ITS#6005 realloc should be ch_realloc
authorHoward Chu <hyc@openldap.org>
Mon, 9 Mar 2009 00:48:44 +0000 (00:48 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 9 Mar 2009 00:48:44 +0000 (00:48 +0000)
servers/slapd/sl_malloc.c

index 89614e55a8b943f7faa6daea5e6b4a055fc7b840..a5d8760b64d77f7eda5dd3735fc37be0bc7d736d 100644 (file)
@@ -195,7 +195,7 @@ slap_sl_mem_create(
                        if (size > (char *)sh->sh_end - (char *)sh->sh_base) {
                                void    *newptr;
 
-                               newptr = realloc( sh->sh_base, size );
+                               newptr = ch_realloc( sh->sh_base, size );
                                if ( newptr == NULL ) return NULL;
                                sh->sh_base = newptr;
                        }