Linked callbacks and allocated/freed structure