From: Howard Chu Date: Mon, 29 Sep 2003 11:15:12 +0000 (+0000) Subject: Plug read_config memleak X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~630 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dbdfb8c0a34d81c1368843a41ed5c190f915011f;p=openldap Plug read_config memleak --- diff --git a/servers/slurpd/config.c b/servers/slurpd/config.c index 6f3df19a0f..3f7a8f8b65 100644 --- a/servers/slurpd/config.c +++ b/servers/slurpd/config.c @@ -64,8 +64,10 @@ slurpd_read_config( FILE *fp; char *line; + if ( cargv == NULL ) { cargv = ch_calloc( ARGS_STEP + 1, sizeof(*cargv) ); cargv_size = ARGS_STEP + 1; + } #ifdef NEW_LOGGING LDAP_LOG ( CONFIG, ARGS,