Commit 035759eb authored by Kevin Modzelewski's avatar Kevin Modzelewski

incref before calling internStringMortalInplace

parent 8fc91b68
...@@ -2290,6 +2290,7 @@ public: ...@@ -2290,6 +2290,7 @@ public:
RELEASE_ASSERT(_key->cls == str_cls, ""); RELEASE_ASSERT(_key->cls == str_cls, "");
BoxedString* key = static_cast<BoxedString*>(_key); BoxedString* key = static_cast<BoxedString*>(_key);
Py_INCREF(key);
internStringMortalInplace(key); internStringMortalInplace(key);
AUTO_DECREF(key); AUTO_DECREF(key);
...@@ -2314,6 +2315,7 @@ public: ...@@ -2314,6 +2315,7 @@ public:
RELEASE_ASSERT(_key->cls == str_cls, ""); RELEASE_ASSERT(_key->cls == str_cls, "");
BoxedString* key = static_cast<BoxedString*>(_key); BoxedString* key = static_cast<BoxedString*>(_key);
Py_INCREF(key);
internStringMortalInplace(key); internStringMortalInplace(key);
AUTO_DECREF(key); AUTO_DECREF(key);
...@@ -2344,6 +2346,7 @@ public: ...@@ -2344,6 +2346,7 @@ public:
RELEASE_ASSERT(_key->cls == str_cls, ""); RELEASE_ASSERT(_key->cls == str_cls, "");
BoxedString* key = static_cast<BoxedString*>(_key); BoxedString* key = static_cast<BoxedString*>(_key);
Py_INCREF(key);
internStringMortalInplace(key); internStringMortalInplace(key);
AUTO_DECREF(key); AUTO_DECREF(key);
...@@ -2373,6 +2376,7 @@ public: ...@@ -2373,6 +2376,7 @@ public:
RELEASE_ASSERT(_key->cls == str_cls, ""); RELEASE_ASSERT(_key->cls == str_cls, "");
BoxedString* key = static_cast<BoxedString*>(_key); BoxedString* key = static_cast<BoxedString*>(_key);
Py_INCREF(key);
internStringMortalInplace(key); internStringMortalInplace(key);
AUTO_DECREF(key); AUTO_DECREF(key);
...@@ -2435,6 +2439,7 @@ public: ...@@ -2435,6 +2439,7 @@ public:
RELEASE_ASSERT(_key->cls == str_cls, ""); RELEASE_ASSERT(_key->cls == str_cls, "");
BoxedString* key = static_cast<BoxedString*>(_key); BoxedString* key = static_cast<BoxedString*>(_key);
Py_INCREF(key);
internStringMortalInplace(key); internStringMortalInplace(key);
AUTO_DECREF(key); AUTO_DECREF(key);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment