libhtml: plug a memory leak in addtext
Change-Id: I9b8a4430e7d26008ba9508095f8eb4b124a93b9b
This commit is contained in:
parent
8241eca986
commit
a18741729c
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue