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:
Ruslan Ermilov 2001-11-29 07:42:13 +00:00
parent 930dbabb42
commit 973698b38b

View File

@ -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() */