Nicer try on mod_khomp, but now... double-free...