COMMON: fix memory leak in uds