Skip to content

Commit

Permalink
Add magic to destroy state
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Sep 30, 2020
1 parent 6f1f6dc commit f90d15e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/wasi/wasi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
namespace
{
// Global state.
// NOTE: we do not care about uvwasi_destroy(), because it only clears file descriptors (currently)
// and we are a single-run tool. This may change in the future and should reevaluate.
uvwasi_t state;
std::unique_ptr<uvwasi_t, decltype(&uvwasi_destroy)> state_destroyer{&state, &uvwasi_destroy};

fizzy::ExecutionResult wasi_return_enosys(fizzy::Instance&, fizzy::span<const fizzy::Value>, int)
{
Expand Down

0 comments on commit f90d15e

Please sign in to comment.