rds: fixed mem leak in connector