Commits

Amaury Forgeot d'Arc  committed bb2eb64

Fix reference count in PyString_InternInPlace()

  • Participants
  • Parent commits 30cb1ba

Comments (0)

Files changed (1)

File pypy/module/cpyext/stringobject.py

     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)