Fix security issue with PB_ENABLE_MALLOC.