[pypy-svn] r44324 - in pypy/dist/pypy/module/_curses: . test

fijal at codespeak.net fijal at codespeak.net
Sun Jun 17 20:26:38 CEST 2007


Author: fijal
Date: Sun Jun 17 20:26:36 2007
New Revision: 44324

Modified:
   pypy/dist/pypy/module/_curses/fficurses.py
   pypy/dist/pypy/module/_curses/test/test_curses.py
Log:
Seems that this string is not meant to be freed. man says nothing...


Modified: pypy/dist/pypy/module/_curses/fficurses.py
==============================================================================
--- pypy/dist/pypy/module/_curses/fficurses.py	(original)
+++ pypy/dist/pypy/module/_curses/fficurses.py	Sun Jun 17 20:26:36 2007
@@ -91,7 +91,6 @@
                      l[7], l[8], l[9])
     lltype.free(ll_s, flavor='raw')
     res = rffi.charp2str(ll_res)
-    lltype.free(ll_res, flavor='raw')
     return res
 
 register_external(interp_curses._curses_tparm, [str, [int]], str,

Modified: pypy/dist/pypy/module/_curses/test/test_curses.py
==============================================================================
--- pypy/dist/pypy/module/_curses/test/test_curses.py	(original)
+++ pypy/dist/pypy/module/_curses/test/test_curses.py	Sun Jun 17 20:26:36 2007
@@ -96,4 +96,4 @@
             assert res == '\033[6;4H'
 
         fn = compile(runs_tparm, [])
-        fn(expected_extra_mallocs=-1)
+        fn()



More information about the Pypy-commit mailing list