fix trunk for ocatve
DSDP: better resolution of memory leak