wip memory leak in link stream