From dbdfb8c0a34d81c1368843a41ed5c190f915011f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 29 Sep 2003 11:15:12 +0000 Subject: [PATCH] Plug read_config memleak --- servers/slurpd/config.c | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.39.5