diff --git a/example/simple/src/ctx.c b/example/simple/src/ctx.c index fd6798a..25c049b 100644 --- a/example/simple/src/ctx.c +++ b/example/simple/src/ctx.c @@ -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; }