plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit a18741729cc1460088d1ddaa365dfa6455a459ec
parent 8241eca986a18d242f52273f76d59f6828e6c859
Author: Neven Sajko <nsajko@gmail.com>
Date:   Sun, 18 Aug 2019 20:10:09 +0000

libhtml: plug a memory leak in addtext

Change-Id: I9b8a4430e7d26008ba9508095f8eb4b124a93b9b

Diffstat:
Msrc/libhtml/build.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/libhtml/build.c b/src/libhtml/build.c @@ -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)