mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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…
Reference in a new issue