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.
This commit is contained in:
Jef Driesen 2023-03-30 21:26:48 +02:00
parent bec4a747ff
commit 629d567381

View File

@ -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;
}