mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Remove invalid free on non-allocated pointer.
The byte_lookup member is a fixed-size 2D array and should not be freed in the destructor. Fixes #1018.
This commit is contained in:
parent
203df4fa6b
commit
fde081c30f
1 changed files with 0 additions and 1 deletions
1
src/H3.h
1
src/H3.h
|
@ -66,7 +66,6 @@ template<class T, int N> class H3 {
|
|||
T byte_lookup[N][H3_BYTE_RANGE];
|
||||
public:
|
||||
H3();
|
||||
~H3() { free(byte_lookup); }
|
||||
T operator()(const void* data, size_t size, size_t offset = 0) const
|
||||
{
|
||||
const unsigned char *p = static_cast<const unsigned char*>(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue