Skip to content

Commit

Permalink
Fix svec release
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Nov 27, 2024
1 parent 4c7b117 commit e5f4008
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/collections/vec.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ void _z_svec_clear(_z_svec_t *v, z_element_clear_f clear_f, size_t element_size)
void _z_svec_release(_z_svec_t *v) {
z_free(v->_val);
v->_capacity = 0;
v->_val = NULL;
}

void _z_svec_free(_z_svec_t **v, z_element_clear_f clear, size_t element_size) {
Expand Down

0 comments on commit e5f4008

Please sign in to comment.