diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-11-26 22:43:30 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-12-29 23:36:21 +0100 |
| commit | 52c18e60929b64285d4bb333f87482d954c9b2e0 (patch) | |
| tree | 836ab3a01d160f45cda4f5a28522fc0bf471011c /src/unload.c | |
First commitfirst-step
Diffstat (limited to 'src/unload.c')
| -rw-r--r-- | src/unload.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/unload.c b/src/unload.c new file mode 100644 index 0000000..5304701 --- /dev/null +++ b/src/unload.c @@ -0,0 +1,13 @@ +#include <wasmfs.h> +#include <wasm_types.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> + +void wasmfs_unload(struct wasmfs *const w) +{ + if (w) + free(w->path); + + free(w); +} |
