From: Howard Chu Date: Fri, 9 Sep 2005 07:06:58 +0000 (+0000) Subject: ITS#3981 ch_realloc( addr, 0 ) frees addr, return NULL X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~453 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c8f977e1b7b68235538823b70d409c4d131543f7;p=openldap ITS#3981 ch_realloc( addr, 0 ) frees addr, return NULL --- diff --git a/servers/slapd/ch_malloc.c b/servers/slapd/ch_malloc.c index 2b698fa177..5ea6735254 100644 --- a/servers/slapd/ch_malloc.c +++ b/servers/slapd/ch_malloc.c @@ -75,6 +75,7 @@ ch_realloc( if( size == 0 ) { ch_free( block ); + return NULL; } ctx = slap_sl_context( block );