Cfunction result garbage collected?

question

#1

Hi,

Is there a risk that the data pointed to by the pointer returned from cfunction will be garbage collected, or can it be stored on the C side without precautions?


#2

No, the function pointer will not be free’d.