Integrate review feedback

This commit is contained in:
Dominik Charousset 2019-10-29 21:24:56 +01:00
parent 0f41b063b2
commit 72e15fe4d4
6 changed files with 18 additions and 27 deletions

View file

@ -3159,7 +3159,7 @@ Val* cast_value_to_type(Val* v, BroType* t)
if ( ! dv )
return 0;
return static_cast<bro_broker::DataVal *>(dv)->castTo(t).release();
return static_cast<bro_broker::DataVal *>(dv)->castTo(t).detach();
}
return 0;