libhtml: plug a memory leak in addtext
Change-Id: I9b8a4430e7d26008ba9508095f8eb4b124a93b9b
This commit is contained in:
parent
8241eca986
commit
a18741729c
@ -2445,6 +2445,9 @@ addtext(Pstate* ps, Rune* s)
|
|||||||
free(s);
|
free(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
free(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else { /* not literal mode */
|
else { /* not literal mode */
|
||||||
if((ps->curstate&IFbrk) || ps->lastit == ps->items)
|
if((ps->curstate&IFbrk) || ps->lastit == ps->items)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user