diff --git a/src/collections/vec.c b/src/collections/vec.c index ee570c4ee..c03f18f09 100644 --- a/src/collections/vec.c +++ b/src/collections/vec.c @@ -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) {