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:
Robert Baldyga 2022-06-14 16:17:45 +02:00
parent 3f552703f5
commit a525cb9f62

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;