langs: get rid of other memory leaks

looks like in need for a rewrite (like most of the project).
Announce defeat regarding refactoring.