feat(runtime-c-api) Add the wasmer_module_serialization_destroy function.

This commit is contained in:
Ivan Enderlin
2019-03-18 16:05:04 +01:00
parent aac5c88b58
commit 6605a02316
4 changed files with 21 additions and 11 deletions

View File

@ -62,8 +62,7 @@ int main()
assert(call_result == WASMER_OK);
printf("Destroy the serialized module\n");
free((uint8_t *) serialized_module->bytes);
free(serialized_module);
wasmer_module_serialization_destroy(serialized_module);
printf("Destroy instance\n");
wasmer_instance_destroy(instance);