From c8f977e1b7b68235538823b70d409c4d131543f7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 9 Sep 2005 07:06:58 +0000 Subject: [PATCH] ITS#3981 ch_realloc( addr, 0 ) frees addr, return NULL --- servers/slapd/ch_malloc.c | 1 + 1 file changed, 1 insertion(+) 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 ); -- 2.39.5