Fixed memory leak in dialog_gauge(3).
PR: gnu/32260 Submitted by: Igor Pokrovsky <tiamat@telegraph.spb.ru> MFC after: 3 days
This commit is contained in:
parent
930dbabb42
commit
973698b38b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87087
@ -17,6 +17,9 @@
|
||||
* its use.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "dialog.h"
|
||||
|
||||
void
|
||||
@ -66,6 +69,7 @@ dialog_gauge(char *title, char *prompt, int y, int x,
|
||||
for (i=0; i<glen; i++) waddch(gw, ' ');
|
||||
|
||||
wrefresh(gw);
|
||||
delwin(gw);
|
||||
|
||||
return;
|
||||
} /* dialog_gauge() */
|
||||
|
Loading…
Reference in New Issue
Block a user