plug leak when ARG_OFFSET and ARG_BERVAL (ITS#6634)

This commit is contained in:
Pierangelo Masarati 2010-08-29 16:28:16 +00:00
parent 9146659c6c
commit 8be2af29bb

View File

@ -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;
}