From e5f4008edd230612fdce4c46c3927fdcfde6ef44 Mon Sep 17 00:00:00 2001 From: Alexander Bushnev Date: Wed, 27 Nov 2024 18:24:02 +0100 Subject: [PATCH] Fix svec release --- src/collections/vec.c | 1 + 1 file changed, 1 insertion(+) 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) {