1. Pypy
  2. Untitled project
  3. pypy

Commits

Amaury Forgeot d'Arc  committed bb2eb64

Fix reference count in PyString_InternInPlace()

  • Participants
  • Parent commits 30cb1ba
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/cpyext/stringobject.py

View file
     alias."""
     w_str = from_ref(space, string[0])
     w_str = space.new_interned_w_str(w_str)
+    Py_DecRef(space, string[0])
     string[0] = make_ref(space, w_str)
 
 @cpython_api([PyObject, rffi.CCHARP, rffi.CCHARP], PyObject)