Merge pull request #735 from robertbaldyga/fix-example-vol-destroy
example: Fix ocf_volume destruction in error handling code
This commit is contained in:
commit
adfa76a21a
@ -169,7 +169,7 @@ err_cache:
|
||||
err_priv:
|
||||
free(cache_priv);
|
||||
err_vol:
|
||||
ocf_volume_destroy(&volume);
|
||||
ocf_volume_destroy(volume);
|
||||
err_sem:
|
||||
sem_destroy(&context.sem);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user