example: Fix ocf_volume destruction in error handling code
Pass the right pointer type to function ocf_volume_destroy(). Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
3f552703f5
commit
a525cb9f62
@ -169,7 +169,7 @@ err_cache:
|
|||||||
err_priv:
|
err_priv:
|
||||||
free(cache_priv);
|
free(cache_priv);
|
||||||
err_vol:
|
err_vol:
|
||||||
ocf_volume_destroy(&volume);
|
ocf_volume_destroy(volume);
|
||||||
err_sem:
|
err_sem:
|
||||||
sem_destroy(&context.sem);
|
sem_destroy(&context.sem);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user