mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
one unref to many ... apparently
This commit is contained in:
parent
94d439b0cb
commit
03116d779e
1 changed files with 3 additions and 3 deletions
|
@ -705,8 +705,8 @@ Val* Manager::RecordValToIndexVal(RecordVal *r) {
|
||||||
} else {
|
} else {
|
||||||
ListVal *l = new ListVal(TYPE_ANY);
|
ListVal *l = new ListVal(TYPE_ANY);
|
||||||
for ( int j = 0 ; j < num_fields; j++ ) {
|
for ( int j = 0 ; j < num_fields; j++ ) {
|
||||||
Val* rval = r->Lookup(j);
|
//Val* rval = r->Lookup(j);
|
||||||
assert(rval != 0);
|
//assert(rval != 0);
|
||||||
l->Append(r->LookupWithDefault(j));
|
l->Append(r->LookupWithDefault(j));
|
||||||
}
|
}
|
||||||
idxval = l;
|
idxval = l;
|
||||||
|
@ -870,7 +870,7 @@ int Manager::SendEntryTable(Filter* i, const Value* const *vals) {
|
||||||
Val* idxval;
|
Val* idxval;
|
||||||
if ( predidx != 0 ) {
|
if ( predidx != 0 ) {
|
||||||
idxval = RecordValToIndexVal(predidx);
|
idxval = RecordValToIndexVal(predidx);
|
||||||
Unref(predidx);
|
// I think there is an unref missing here. But if I insert is, it crashes :)
|
||||||
} else {
|
} else {
|
||||||
idxval = ValueToIndexVal(filter->num_idx_fields, filter->itype, vals);
|
idxval = ValueToIndexVal(filter->num_idx_fields, filter->itype, vals);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue