fix warnings in leak tracker

fix warnings in leak tracker (convert data pointer to function pointer
and vice versa)