diff --git a/src/OpaqueVal.cc b/src/OpaqueVal.cc index dcf3e84430..211426a434 100644 --- a/src/OpaqueVal.cc +++ b/src/OpaqueVal.cc @@ -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); diff --git a/src/Serializer.h b/src/Serializer.h index 719d4dc527..f2cea1000e 100644 --- a/src/Serializer.h +++ b/src/Serializer.h @@ -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;