Remove MALLOC/REALLOC macros from configura.ac as they cause trouble with memory debugging AND compilation.
Do not use pExtendedData beyond connect handler. NULL out pExtendedData once done.