mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
(hopefully) fix refcounting problem in hll/bloom-filter opaque vals.
Thanks Robin.
This commit is contained in:
parent
83ce77e575
commit
07634fd95e
2 changed files with 3 additions and 3 deletions
|
@ -554,7 +554,7 @@ bool BloomFilterVal::Typify(BroType* arg_type)
|
||||||
type->Ref();
|
type->Ref();
|
||||||
|
|
||||||
TypeList* tl = new TypeList(type);
|
TypeList* tl = new TypeList(type);
|
||||||
tl->Append(type);
|
tl->Append(type->Ref());
|
||||||
hash = new CompositeHash(tl);
|
hash = new CompositeHash(tl);
|
||||||
Unref(tl);
|
Unref(tl);
|
||||||
|
|
||||||
|
@ -760,7 +760,7 @@ bool CardinalityVal::Typify(BroType* arg_type)
|
||||||
type->Ref();
|
type->Ref();
|
||||||
|
|
||||||
TypeList* tl = new TypeList(type);
|
TypeList* tl = new TypeList(type);
|
||||||
tl->Append(type);
|
tl->Append(type->Ref());
|
||||||
hash = new CompositeHash(tl);
|
hash = new CompositeHash(tl);
|
||||||
Unref(tl);
|
Unref(tl);
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ protected:
|
||||||
|
|
||||||
// This will be increased whenever there is an incompatible change
|
// This will be increased whenever there is an incompatible change
|
||||||
// in the data format.
|
// in the data format.
|
||||||
static const uint32 DATA_FORMAT_VERSION = 23;
|
static const uint32 DATA_FORMAT_VERSION = 24;
|
||||||
|
|
||||||
ChunkedIO* io;
|
ChunkedIO* io;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue