From f886280c2a885327d42a4b38415ca20b8e2796bc Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 3 May 2017 11:59:26 +0000 Subject: While freeing tag entries, make sure to free the copied strings. From Anton Lindqvist. OK tobias@ nicm@ --- usr.bin/less/tags.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin') 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; -- cgit v1.2.3