diff options
author | Neven Sajko <nsajko@gmail.com> | 2019-08-18 20:10:09 +0000 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2020-01-08 08:50:01 -0500 |
commit | a18741729cc1460088d1ddaa365dfa6455a459ec (patch) | |
tree | 0cd7e8ba71c26b735db898f1485941ba3120ca10 /src/libhtml | |
parent | 8241eca986a18d242f52273f76d59f6828e6c859 (diff) | |
download | plan9port-a18741729cc1460088d1ddaa365dfa6455a459ec.tar.gz plan9port-a18741729cc1460088d1ddaa365dfa6455a459ec.tar.bz2 plan9port-a18741729cc1460088d1ddaa365dfa6455a459ec.zip |
libhtml: plug a memory leak in addtext
Change-Id: I9b8a4430e7d26008ba9508095f8eb4b124a93b9b
Diffstat (limited to 'src/libhtml')
-rw-r--r-- | src/libhtml/build.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libhtml/build.c b/src/libhtml/build.c index 06397086..78b6efff 100644 --- 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) |