freeAllComponentModelReallocAllocatedMemory

Deprecated

Freeing all cabi_realloc-allocated memory is incompatible with the WASI preview 1 to preview 2 adapter which uses cabi_realloc to allocate memory that it expects is never freed. This means that the use of this function will always cause use-after-free UB in the adapter.

Frees memory allocated by all previous calls of componentModelRealloc. This is intended to be used for Component Model support and must not be called directly!

NOTE: This function is incompatible with freeing memory manually through componentModelRealloc(ptr, size, 0) calls, as this will result in a double-free.

Since Kotlin

1.8

Deprecated

Freeing all cabi_realloc-allocated memory is incompatible with the WASI preview 1 to preview 2 adapter which uses cabi_realloc to allocate memory that it expects is never freed. This means that the use of this function will always cause use-after-free UB in the adapter.

Frees memory allocated by all previous calls of componentModelRealloc. This is intended to be used for Component Model support and must not be called directly!

NOTE: This function is incompatible with freeing memory manually through componentModelRealloc(ptr, size, 0) calls, as this will result in a double-free.

Since Kotlin

1.8