diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-12-14 15:53:06 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-12-15 11:15:33 -0500 |
| commit | 1fec35c3c7e212e41224035e1c04e2c211634d72 (patch) | |
| tree | d4a2444e26d4eff8861db84ff6c58e04ac4cf94d /lib/lib_errors.h | |
| parent | 6354d63593d717b4b9a0920cd3a7e6dec10b6e50 (diff) | |
lib: Fix free function
The list delete function on creation was set to srv6_locator_chunk_free
Which takes a double pointer and dereferences it to free the data.
When list_delete is called it calls the delete function like this:
if (*list->del)
(*list->del)(node->data);
The data is not passed in by reference and as such we do not have
a double pointer. Fortunately this list_delete is only really
called on shutdown when the locator was deleted and we do not
have a fun situation where we were suddenly freeing 'something'.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/lib_errors.h')
0 files changed, 0 insertions, 0 deletions
