diff --git a/examples/c/storage.c b/examples/c/storage.c index cbe32ae9..c7d2d4ad 100644 --- a/examples/c/storage.c +++ b/examples/c/storage.c @@ -273,18 +273,13 @@ int cleanup(void *storage_ctx) return RET_ERR; } - r = alloc_resp(); - // Destroy node // No need to wait here as storage_destroy is synchronous - if (storage_destroy(storage_ctx, (StorageCallback)callback, r) != RET_OK) + if (storage_destroy(storage_ctx) != RET_OK) { - free_resp(r); return RET_ERR; } - free_resp(r); - return RET_OK; }