tahu
tahu copied to clipboard
c/core/test memory leak in `publish_node_birth()`
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);
.