From 8be2af29bbbd70f361597043d12ffee9c3f90094 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 29 Aug 2010 16:28:16 +0000 Subject: [PATCH] plug leak when ARG_OFFSET and ARG_BERVAL (ITS#6634) --- servers/slapd/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 63754a4046..5ab500325c 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -467,7 +467,7 @@ config_get_vals(ConfigTable *cf, ConfigArgs *c) c->value_string = ch_strdup(*(char **)ptr); break; case ARG_BERVAL: - ber_dupbv( &c->value_bv, (struct berval *)ptr ); break; + c->value_bv = *((struct berval *)ptr); break; case ARG_ATDESC: c->value_ad = *(AttributeDescription **)ptr; break; } -- 2.39.5