fix segfault when OOM on the termpty_save module
fix segfault when OOM on the termpty_save module

godfath3r/terminology,godfath3r/terminology,ihorlaitan/terminology,godfath3r/terminology,ihorlaitan/terminology,ihorlaitan/terminology