libhtml: plug a memory leak in addtext

Change-Id: I9b8a4430e7d26008ba9508095f8eb4b124a93b9b
This commit is contained in:
Neven Sajko 2019-08-18 20:10:09 +00:00 committed by Dan Cross
parent 8241eca986
commit a18741729c

View file

@ -2445,6 +2445,9 @@ addtext(Pstate* ps, Rune* s)
free(s);
}
}
else {
free(s);
}
}
else { /* not literal mode */
if((ps->curstate&IFbrk) || ps->lastit == ps->items)