fix memory leak in dsdp interface