Unfortunately when memory is allocated in a dynamic link library and freed in the main executable space, a segfault is thrown. Since in most use cases these strings are on the string table of the dynamic library, we don't actually need to free them. What I'm doing now is to jus tset the pointer to the string table and not free the memory.
Unfortunately when memory is allocated in a dynamic link library and freed in the main executable space, a segfault is thrown. Since in most use cases these strings are on the string table of the dynamic library, we don't actually need to free them. What I'm doing now is to jus tset the pointer to the string table and not free the memory.