Passing a reference to Julia struct into ccall and let C manage the memory

@thofma @foobar_lv2 Many thanks! The struct must indeed be mutable (didn’t see this because I forgot to reload the module). Problem solved! :slight_smile:

About the C-code you are of course right. It should be sizeof(*in) and the allocation was not intended to be there. But this was not the major Problem.