Small fixes and tweaks.

- Fixing tiny leak.

    - Fixing threads stat output.
This commit is contained in:
Robin Sommer 2012-03-16 09:11:31 -07:00
parent 89a3bb33c8
commit e3f5cbb670
3 changed files with 19 additions and 20 deletions

View file

@ -677,11 +677,11 @@ bool Manager::Write(EnumVal* id, RecordVal* columns)
Val* path_arg;
if ( filter->path_val )
path_arg = filter->path_val;
path_arg = filter->path_val->Ref();
else
path_arg = new StringVal("");
vl.append(path_arg->Ref());
vl.append(path_arg);
Val* rec_arg;
BroType* rt = filter->path_func->FType()->Args()->FieldType("rec");
@ -715,7 +715,6 @@ bool Manager::Write(EnumVal* id, RecordVal* columns)
if ( ! filter->path_val )
{
Unref(path_arg);
filter->path = v->AsString()->CheckString();
filter->path_val = v->Ref();
}