]> git.sur5r.net Git - openldap/commitdiff
Plug read_config memleak
authorHoward Chu <hyc@openldap.org>
Mon, 29 Sep 2003 11:15:12 +0000 (11:15 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 29 Sep 2003 11:15:12 +0000 (11:15 +0000)
servers/slurpd/config.c

index 6f3df19a0f95444217954371795a6984a7248d74..3f7a8f8b65f0f3b04d7256d05a24381b70a2fc47 100644 (file)
@@ -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,