madtty: fix read/write in already freed memory causing a segfault
madtty: fix read/write in already freed memory causing a segfault

We can't reuse madtty_dirty in this case because it uses t->lines
which was previously reallocated but still points to the old
address.

Signed-off-by: Marc Andre Tanner <cc7c5be316e48d137cbb549833b85d91034d799d@brain-dump.org>

medgar123/dvtm,tgvaughan/dvtm,armanbilge/dvtm,samaaron/dvtm,raedwulf/dvtm,gridsystem/dvtmx,lotrfan/dvtm,lotrfan/dvtm,lotrfan/dvtm,benjohnson2001/dvtm,seanyeh/dvtm,tgvaughan/dvtm,tgvaughan/dvtm,raedwulf/dvtm,delphinus35/dvtm,raedwulf/dvtm,benjohnson2001/dvtm,medgar123/dvtm,seanyeh/dvtm,medgar123/dvtm,delphinus35/dvtm,armanbilge/dvtm,benjohnson2001/dvtm,gridsystem/dvtmx,seanyeh/dvtm,samaaron/dvtm