Handle properly error in example
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
e7b5105d60
commit
763997bb06
@ -313,7 +313,7 @@ int ctx_init(ocf_ctx_t *ctx)
|
||||
|
||||
ret = dobj_init(*ctx);
|
||||
if (ret) {
|
||||
dobj_cleanup(*ctx);
|
||||
ocf_ctx_exit(*ctx);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user