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
commit adfa76a21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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