Closed
Description
Here the memory is allocated in reverse()
:
Here it used in toDartString()
:
samples/ffi/structs/structs.dart
Lines 67 to 68 in 21e809c
It is not clear how the allocated memory should be freed.
Should it be done using malloc.free()
call or there is a more conventional way to do it in dart? OTOH, if toDartString()
actually takes ownership for this C string and there is no memory leak, then this behavior should be documented somewhere.
Metadata
Metadata
Assignees
Labels
No labels