On Tue, Feb 02, 2016 at 16:33 +0100, you wrote:

>              Val* ma = new StringVal(n, (const char*) t);
>              a->Assign(ma, 0);
>              Unref(ma);

> Is my observation correct?

It is, good catch. Assign() take ownership of the value (0 in this
case), but not of the index. Yes, please send a patch for this one and
other instances you find. Thanks,

Robin

-- 
Robin Sommer * ICSI/LBNL * [email protected] * www.icir.org/robin
_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

Reply via email to