]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/sl_malloc.c
More for ITS#6045: clear o_callback as well.
[openldap] / servers / slapd / sl_malloc.c
index 74e24e21e89d7042fef38a4325bee89fa6b04fb0..a5d8760b64d77f7eda5dd3735fc37be0bc7d736d 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2003-2008 The OpenLDAP Foundation.
+ * Copyright 2003-2009 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -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;
                        }