summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-11-29 07:42:13 +0000
committerru <ru@FreeBSD.org>2001-11-29 07:42:13 +0000
commitcc289dd3938cb123b718f3936cf6529265a623ed (patch)
treee60ba266696a0426ecbca465349d979f203d11ce /gnu
parentcb794aeac8e355a0c137ec23b883f8b3a73d1083 (diff)
downloadFreeBSD-src-cc289dd3938cb123b718f3936cf6529265a623ed.zip
FreeBSD-src-cc289dd3938cb123b718f3936cf6529265a623ed.tar.gz
Fixed memory leak in dialog_gauge(3).
PR: gnu/32260 Submitted by: Igor Pokrovsky <tiamat@telegraph.spb.ru> MFC after: 3 days
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libdialog/gauge.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/lib/libdialog/gauge.c b/gnu/lib/libdialog/gauge.c
index a44f969..aea73d5 100644
--- a/gnu/lib/libdialog/gauge.c
+++ b/gnu/lib/libdialog/gauge.c
@@ -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() */
OpenPOWER on IntegriCloud