diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2017-05-03 11:59:26 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2017-05-03 11:59:26 +0000 |
commit | f886280c2a885327d42a4b38415ca20b8e2796bc (patch) | |
tree | bf80f20c3bbc88dbd7e10d6b2362c00b7ec4d15f /usr.bin | |
parent | d37a7028a88afae3677afe0da1ff0f4eb70a765a (diff) |
While freeing tag entries, make sure to free the copied strings.
From Anton Lindqvist. OK tobias@ nicm@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/less/tags.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/less/tags.c b/usr.bin/less/tags.c index c71eacf35c1..9c7cba96883 100644 --- a/usr.bin/less/tags.c +++ b/usr.bin/less/tags.c @@ -77,6 +77,8 @@ cleantags(void) */ while ((tp = taglist.tl_first) != TAG_END) { TAG_RM(tp); + free(tp->tag_file); + free(tp->tag_pattern); free(tp); } curtag = NULL; |