Merge remote-tracking branch 'origin/fastpath'

* origin/fastpath:
  Fix a reference counting bug in ListVal ctor.
This commit is contained in:
Robin Sommer 2014-06-26 17:24:00 -07:00
commit 83457b2974
3 changed files with 10 additions and 4 deletions

View file

@ -612,8 +612,14 @@ extern OpaqueType* topk_type;
extern OpaqueType* bloomfilter_type;
extern OpaqueType* x509_opaque_type;
// Returns the Bro basic (non-parameterized) type with the given type.
// The reference count of the type is not increased.
BroType* base_type_no_ref(TypeTag tag);
// Returns the BRO basic (non-parameterized) type with the given type.
extern BroType* base_type(TypeTag tag);
// The caller assumes responsibility for a reference to the type.
inline BroType* base_type(TypeTag tag)
{ return base_type_no_ref(tag)->Ref(); }
// Returns the BRO basic error type.
inline BroType* error_type() { return base_type(TYPE_ERROR); }