Fix memory leak in RecordVal JSON formatting

This commit is contained in:
Jon Siwek 2019-09-30 19:02:33 -07:00
parent 97519e4350
commit d258ebe5ca
2 changed files with 142 additions and 0 deletions

View file

@ -607,6 +607,8 @@ static ZeekJson BuildJSON(Val* val, bool only_loggable=false, RE_Matcher* re=new
if ( value && ( ! only_loggable || key_field->Lookup("log")->AsBool() ) )
j[key_string] = BuildJSON(value, only_loggable, re);
Unref(value);
}
delete fields;