ncurses 5.9 - patch 20150307
[ncurses.git] / test / demo_forms.c
index 7ba067c13a78d979c1ccb541d5930e899cfab502..97125e396e5fc0720069a08117ef9a6075588b32 100644 (file)
@@ -26,7 +26,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: demo_forms.c,v 1.49 2014/08/02 23:11:57 tom Exp $
+ * $Id: demo_forms.c,v 1.50 2014/10/10 00:38:00 tom Exp $
  *
  * Demonstrate a variety of functions from the form library.
  * Thomas Dickey - 2003/4/26
  *
  * Demonstrate a variety of functions from the form library.
  * Thomas Dickey - 2003/4/26
@@ -172,6 +172,7 @@ read_data(const char *filename)
                failed("expected a colon");
            }
        }
                failed("expected a colon");
            }
        }
+       fclose(fp);
     } else {
        failed(filename);
     }
     } else {
        failed(filename);
     }