mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#8082 plug benign memleak
This commit is contained in:
parent
a96fc51ebb
commit
f385fd5ad1
1 changed files with 3 additions and 0 deletions
|
|
@ -731,6 +731,7 @@ read_config_file(const char *fname, int depth, ConfigArgs *cf, ConfigTable *cft)
|
|||
Debug(LDAP_DEBUG_ANY,
|
||||
"could not stat config file \"%s\": %s (%d)\n",
|
||||
fname, strerror(errno), errno);
|
||||
ch_free( c->argv );
|
||||
ch_free( c );
|
||||
return(1);
|
||||
}
|
||||
|
|
@ -740,6 +741,7 @@ read_config_file(const char *fname, int depth, ConfigArgs *cf, ConfigTable *cft)
|
|||
Debug(LDAP_DEBUG_ANY,
|
||||
"regular file expected, got \"%s\"\n",
|
||||
fname, 0, 0 );
|
||||
ch_free( c->argv );
|
||||
ch_free( c );
|
||||
return(1);
|
||||
}
|
||||
|
|
@ -750,6 +752,7 @@ read_config_file(const char *fname, int depth, ConfigArgs *cf, ConfigTable *cft)
|
|||
Debug(LDAP_DEBUG_ANY,
|
||||
"could not open config file \"%s\": %s (%d)\n",
|
||||
fname, strerror(errno), errno);
|
||||
ch_free( c->argv );
|
||||
ch_free( c );
|
||||
return(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue