(hopefully) fix refcounting problem in hll/bloom-filter opaque vals.

Thanks Robin.
This commit is contained in:
Bernhard Amann 2013-07-31 12:36:56 -07:00
parent 83ce77e575
commit 07634fd95e
2 changed files with 3 additions and 3 deletions

View file

@ -554,7 +554,7 @@ bool BloomFilterVal::Typify(BroType* arg_type)
type->Ref();
TypeList* tl = new TypeList(type);
tl->Append(type);
tl->Append(type->Ref());
hash = new CompositeHash(tl);
Unref(tl);
@ -760,7 +760,7 @@ bool CardinalityVal::Typify(BroType* arg_type)
type->Ref();
TypeList* tl = new TypeList(type);
tl->Append(type);
tl->Append(type->Ref());
hash = new CompositeHash(tl);
Unref(tl);

View file

@ -126,7 +126,7 @@ protected:
// This will be increased whenever there is an incompatible change
// in the data format.
static const uint32 DATA_FORMAT_VERSION = 23;
static const uint32 DATA_FORMAT_VERSION = 24;
ChunkedIO* io;