From 763997bb06f5f796421710d5282614feb425cf51 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Tue, 22 Jan 2019 12:02:03 +0100 Subject: [PATCH] Handle properly error in example Signed-off-by: Robert Baldyga --- example/simple/src/ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }