Commits

Maciej Fijalkowski committed ff3f647

always pass nothing here

  • Participants
  • Parent commits d61a57a

Comments (0)

Files changed (1)

rpython/rtyper/module/ll_os.py

     def register_os_tmpnam(self):
         os_tmpnam = self.llexternal('tmpnam', [rffi.CCHARP], rffi.CCHARP)
 
-        def tmpnam_llimpl(name):
-            buf = rffi.str2charp(name)
-            try:
-                return rffi.charp2str(os_tmpnam(buf))
-            finally:
-                lltype.free(buf, flavor='raw')
+        def tmpnam_llimpl():
+            return rffi.charp2str(os_tmpnam(lltype.nullptr(rffi.CCHARP.TO)))
 
-        return extdef([str], None, llimpl=tmpnam_llimpl,
+        return extdef([], None, llimpl=tmpnam_llimpl,
                       export_name="ll_os.ll_os_tmpnam")
 
 # --------------------------- os.stat & variants ---------------------------