langs.cc: fix potential memory leak