Segmentation Fault when trying to access pointer component of C struct

This is definitely something to consider. Unfortunately, for the C library I am trying to wrap, I only have access to the binary and header files. So, all the dynamic memory allocation will be done on the C side with putative calls to C functions that free some allocated objects.

Could you help have a look at a new problem that I have, which I believe has a relation to dynamic memory management here. Thanks.