curses status cleanup

Stop the last of the memory leaks occuring during basic usage.
This commit is contained in:
PatR
2019-02-09 15:30:53 -08:00
parent d4d7901eff
commit d80fd8a014
4 changed files with 7 additions and 8 deletions

View File

@@ -58,15 +58,16 @@ curses_status_init()
}
void
curses_teardown_status()
curses_status_finish()
{
#ifdef STATUS_HILITES
int i;
for (i = 0; i < MAXBLSTATS; ++i) {
free(status_vals_long[i]);
status_vals_long[i] = (char *) 0;
if (status_vals_long[i])
free(status_vals_long[i]), status_vals_long[i] = (char *) 0;
}
genl_status_finish();
#endif /* STATUS_HILITES */
return;
}