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:
parent
bec4a747ff
commit
629d567381
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user