On 05/14/2018 03:03 PM, Jonathan wrote:
> Do I need to call the `free` function with my D code because I need to
> free memory that was allocated in C code?
Yes, you have to free the memory with C's free():
void main() {
import core.stdc.stdlib;
auto p = malloc(42);
free(p);
}
Ali