fix memory leak in shreds
code chore, back to unstable