If I have a function that returns a malloc'd pointer, or that needs to have a buffer malloc'd, is it more idiomatic to (1) malloc and free in the caller function (which is C's idiom, IIRC), or (2) malloc it in C and then just return the pointer for free'ing by Chicken once the caller function is done with the pointer?

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to