fix leaks

also rename lastid to next one as its what it is
fix leaks in llvm usage
suppress deep llvm leak