mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Merge remote-tracking branch 'origin/topic/johanna/stats_smb_leak'
BIT-1534 #merged * origin/topic/johanna/stats_smb_leak: Fix memory leaks in stats.cc and smb.cc
This commit is contained in:
commit
124531d4ae
6 changed files with 34 additions and 8 deletions
|
@ -753,10 +753,11 @@ public:
|
|||
TableVal(TableType* t, Attributes* attrs = 0);
|
||||
~TableVal();
|
||||
|
||||
// Returns true if the assignment typechecked, false if not.
|
||||
// Second version takes a HashKey and Unref()'s it when done.
|
||||
// If we're a set, new_val has to be nil.
|
||||
// If we aren't a set, index may be nil in the second version.
|
||||
// Returns true if the assignment typechecked, false if not. The
|
||||
// methods take ownership of new_val, but not of the index. Second
|
||||
// version takes a HashKey and Unref()'s it when done. If we're a
|
||||
// set, new_val has to be nil. If we aren't a set, index may be nil
|
||||
// in the second version.
|
||||
int Assign(Val* index, Val* new_val, Opcode op = OP_ASSIGN);
|
||||
int Assign(Val* index, HashKey* k, Val* new_val, Opcode op = OP_ASSIGN);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue