Lines Matching refs:new_memo
4421 PyObject *new_memo = PyDict_New(); in _pickle_PicklerMemoProxy_copy_impl() local
4422 if (new_memo == NULL) in _pickle_PicklerMemoProxy_copy_impl()
4440 status = PyDict_SetItem(new_memo, key, value); in _pickle_PicklerMemoProxy_copy_impl()
4447 return new_memo; in _pickle_PicklerMemoProxy_copy_impl()
4450 Py_XDECREF(new_memo); in _pickle_PicklerMemoProxy_copy_impl()
4573 PyMemoTable *new_memo = NULL; in Pickler_set_memo() local
4585 new_memo = PyMemoTable_Copy(pickler->memo); in Pickler_set_memo()
4586 if (new_memo == NULL) in Pickler_set_memo()
4593 new_memo = PyMemoTable_New(); in Pickler_set_memo()
4594 if (new_memo == NULL) in Pickler_set_memo()
4610 if (PyMemoTable_Set(new_memo, memo_obj, memo_id) < 0) in Pickler_set_memo()
4622 self->memo = new_memo; in Pickler_set_memo()
4627 if (new_memo) in Pickler_set_memo()
4628 PyMemoTable_Del(new_memo); in Pickler_set_memo()
6860 PyObject *new_memo = PyDict_New(); in _pickle_UnpicklerMemoProxy_copy_impl() local
6861 if (new_memo == NULL) in _pickle_UnpicklerMemoProxy_copy_impl()
6875 status = PyDict_SetItem(new_memo, key, value); in _pickle_UnpicklerMemoProxy_copy_impl()
6880 return new_memo; in _pickle_UnpicklerMemoProxy_copy_impl()
6883 Py_DECREF(new_memo); in _pickle_UnpicklerMemoProxy_copy_impl()
7009 PyObject **new_memo; in Unpickler_set_memo() local
7023 new_memo = _Unpickler_NewMemo(new_memo_size); in Unpickler_set_memo()
7024 if (new_memo == NULL) in Unpickler_set_memo()
7029 new_memo[i] = unpickler->memo[i]; in Unpickler_set_memo()
7037 new_memo = _Unpickler_NewMemo(new_memo_size); in Unpickler_set_memo()
7038 if (new_memo == NULL) in Unpickler_set_memo()
7069 self->memo = new_memo; in Unpickler_set_memo()
7076 Py_XDECREF(new_memo[i]); in Unpickler_set_memo()
7078 PyMem_FREE(new_memo); in Unpickler_set_memo()