Added methods to free heartbeat and response in proto. Issue present, when fields are accessed in freeHeartbeat, reliably segfaults after a short time. Possible double freeing, or incorrect pointer arithmetic occurring. Look into.
Segmentation fault fixed, error in deserializeHeartbeat: structure was not properly zeroed.