]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/sp_tinfo.c
ncurses 6.0 - patch 20170422
[ncurses.git] / test / sp_tinfo.c
index 8e42ad32fdd508557d3962bb37f1d54bca8e219c..fdc6425714d25e6d3ebf9d35f6bd619c5f1bd2de 100644 (file)
@@ -27,7 +27,7 @@
  ****************************************************************************/
 
 /*
- * $Id: sp_tinfo.c,v 1.17 2017/04/02 01:03:30 tom Exp $
+ * $Id: sp_tinfo.c,v 1.18 2017/04/13 21:35:31 tom Exp $
  *
  * TOTO: add option for non-sp-funcs interface
  */
@@ -267,7 +267,9 @@ cleanup(MYDATA * data)
 {
     set_curterm(data->term);
     del_curterm(data->term);
+#if !NO_LEAKS
     free(data->sp);            /* cannot use delscreen in tinfo */
+#endif
     free(data);
 }