From 07634fd95eaefb436ebc26a07156121fc34ab176 Mon Sep 17 00:00:00 2001 From: Bernhard Amann Date: Wed, 31 Jul 2013 12:36:56 -0700 Subject: [PATCH] (hopefully) fix refcounting problem in hll/bloom-filter opaque vals. Thanks Robin. --- src/OpaqueVal.cc | 4 ++-- src/Serializer.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;