commit 09914c82d94d0f388240df080e76b46519e76da0
parent fa06cc8e62d0a7e5e99613de06e6fd3255fc9a23
Author: Eduardo Fontana Lazzari <edufonlaz@gmail.com>
Date: Thu, 27 Feb 2025 16:35:31 +0100
Fix a memory leak
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/sphin_config.c b/src/sphin_config.c
@@ -92,6 +92,7 @@ release_config(ref_T* address)
for (i=nvolumes; i; i--) {
SPHIN(volume_ref_put(volumes[i-1]));
};
+ darray_sphin_volume_ptr_release(&config->volumes);
/* Retrieve the number of surfaces in the config and the array of pointers to
* each one of the surfaces */
@@ -102,6 +103,7 @@ release_config(ref_T* address)
for (i=nsurfaces; i; i--) {
SPHIN(surface_ref_put(surfaces[i-1]));
};
+ darray_sphin_surface_ptr_release(&config->surfaces);
/* Release the memory for config */
sphin = config->sphin;