From f823b92e5ecb83284d5ae255227d7a3a22f9406b Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Thu, 5 Sep 2013 15:47:57 -0500 Subject: [PATCH] Fix mem leak when merging incompatible types. Though this would typically be caused by a scripting error that should be fixed and Bro would exit anyway if encountered at parse time. --- src/Type.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Type.cc b/src/Type.cc index 563bc5afbd..d7236e0344 100644 --- a/src/Type.cc +++ b/src/Type.cc @@ -2003,6 +2003,7 @@ BroType* merge_types(const BroType* t1, const BroType* t2) if ( ! y1 || ! y2 ) { t1->Error("incompatible types", t2); + Unref(tl3); return 0; }