How to free memory ater use of "new" to allocate it.
Alain De Vos
devosalain at ymail.com
Sun Jul 16 18:41:36 UTC 2023
Is this ok ?
```
void main(){
int[] i=new int[10000];
import object: destroy;
destroy(i);
import core.memory: GC;
GC.free(GC.addrOf(cast(void *)(i.ptr)));
}
```
More information about the Digitalmars-d-learn
mailing list