mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Plug read_config memleak
This commit is contained in:
parent
bdf86d44a8
commit
dbdfb8c0a3
@ -64,8 +64,10 @@ slurpd_read_config(
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
char *line;
|
char *line;
|
||||||
|
|
||||||
|
if ( cargv == NULL ) {
|
||||||
cargv = ch_calloc( ARGS_STEP + 1, sizeof(*cargv) );
|
cargv = ch_calloc( ARGS_STEP + 1, sizeof(*cargv) );
|
||||||
cargv_size = ARGS_STEP + 1;
|
cargv_size = ARGS_STEP + 1;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG ( CONFIG, ARGS,
|
LDAP_LOG ( CONFIG, ARGS,
|
||||||
|
Loading…
Reference in New Issue
Block a user