tahu icon indicating copy to clipboard operation
tahu copied to clipboard

c/core/test memory leak in `publish_node_birth()`

Open ian-abbott opened this issue 2 years ago • 0 comments

In "c/core/test/test.c", publish_node_birth() allocates memory pointed to by row_data but does not free it.

One possible solution is to change row_data to a local array variable and clear the array contents with an initializer or with a call to memset().

Another possible solution is to free the memory when it is no longer needed after the call init_dataset(&dataset, 2, 3, datatypes, column_keys, row_data);.

ian-abbott avatar Feb 20 '23 15:02 ian-abbott