From f385fd5ad11407a58d4ac2f4a7b455b45aa345e6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 19 Aug 2015 17:44:08 +0100 Subject: [PATCH] ITS#8082 plug benign memleak --- servers/slapd/config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/config.c b/servers/slapd/config.c index f0cabce8df..2b8e429df1 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -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); } -- 2.39.5