Merge pull request #49 from robertbaldyga/handle-error-in-example

Handle properly error in example
This commit is contained in:
Michał Mielewczyk 2019-01-22 12:06:11 +01:00 committed by GitHub
commit e5a13ef186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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