From 629d5673812407f1d3454362754cf1aa54dd10fb Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 30 Mar 2023 21:26:48 +0200 Subject: [PATCH] Use the correct function to free resources Currently this doesn't make any difference because the dc_device_allocate() function simply calls free(), but this may change in the future. --- src/suunto_eonsteel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/suunto_eonsteel.c b/src/suunto_eonsteel.c index c82db4d..fd4ecc7 100644 --- a/src/suunto_eonsteel.c +++ b/src/suunto_eonsteel.c @@ -806,7 +806,7 @@ suunto_eonsteel_device_open(dc_device_t **out, dc_context_t *context, dc_iostrea return DC_STATUS_SUCCESS; error_free: - free(eon); + dc_device_deallocate ((dc_device_t *) eon); return status; }