From 2bcd7229414abdc1f3d9233b93292c0286ee144d Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Mon, 29 Apr 2019 09:55:57 +0800 Subject: [PATCH] Free the memory allocated by setupterm() --- hydra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hydra.c b/hydra.c index 3cc593e..92c053e 100644 --- a/hydra.c +++ b/hydra.c @@ -2397,6 +2397,9 @@ int main(int argc, char *argv[]) { if (!setupterm(NULL, 1, NULL) && (tigetnum("colors") <= 0)) { colored_output = 0; } + if (cur_term) { + del_curterm(cur_term); + } } #else //don't want border line effect so disabling color output