fix libstorage example

This commit is contained in:
gmega 2026-02-06 16:06:07 -03:00
parent 3129fa9a03
commit 53cac774c3
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18

View File

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