IG, could you have a look at this? why does the mentioned pointer
contain invalid data instead of NULL? could you clean that up?
*facepalm*
char event_jid[256];
It's an actual buffer, not a pointer. It didn't need to be freed in the first place.
aww. *gna*
do the copy operations protect it from overflowing?