]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
free watched file descriptors when destroying form master
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 2 Feb 2026 12:27:16 +0000 (13:27 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 2 Feb 2026 12:30:23 +0000 (13:30 +0100)
form.c

diff --git a/form.c b/form.c
index ad425af6c5b06b16fa4cf8826bddb0972e883804..74175e617afb0aa520d4b0655fcd2aa2f8e09003 100644 (file)
--- a/form.c
+++ b/form.c
@@ -870,6 +870,7 @@ void newtFormDestroy(newtComponent co) {
     }
 
     if (form->hotKeys) free(form->hotKeys);
     }
 
     if (form->hotKeys) free(form->hotKeys);
+    if (form->fds) free(form->fds);
 
     free(form->elements);
     free(form);
 
     free(form->elements);
     free(form);