mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 05:43:52 -07:00
Free the memory allocated by setupterm()
This commit is contained in:
parent
2c7df66d42
commit
2bcd722941
1 changed files with 3 additions and 0 deletions
3
hydra.c
3
hydra.c
|
@ -2397,6 +2397,9 @@ int main(int argc, char *argv[]) {
|
||||||
if (!setupterm(NULL, 1, NULL) && (tigetnum("colors") <= 0)) {
|
if (!setupterm(NULL, 1, NULL) && (tigetnum("colors") <= 0)) {
|
||||||
colored_output = 0;
|
colored_output = 0;
|
||||||
}
|
}
|
||||||
|
if (cur_term) {
|
||||||
|
del_curterm(cur_term);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
//don't want border line effect so disabling color output
|
//don't want border line effect so disabling color output
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue