Malloc free self deregistering callback mechanisms