summaryrefslogtreecommitdiff
path: root/samples/damon
diff options
context:
space:
mode:
Diffstat (limited to 'samples/damon')
-rw-r--r--samples/damon/wsse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/samples/damon/wsse.c b/samples/damon/wsse.c
index ff5e8a890f44..37fd5da20158 100644
--- a/samples/damon/wsse.c
+++ b/samples/damon/wsse.c
@@ -93,10 +93,8 @@ static int damon_sample_wsse_start(void)
}
repeat_call_control.data = ctx;
err = damon_call(ctx, &repeat_call_control);
- if (err) {
- damon_stop(&ctx, 1);
+ if (err)
damon_destroy_ctx(ctx);
- }
return err;
}