Merge pull request #735 from robertbaldyga/fix-example-vol-destroy

example: Fix ocf_volume destruction in error handling code
This commit is contained in:
Robert Baldyga
2022-06-20 16:06:05 +02:00
committed by GitHub

View File

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