commit | ac27e3b317549ab3b218ad35cf550c7c83998ffd | [log] [tgz] |
---|---|---|
author | Joshua Haberman <jhaberman@gmail.com> | Sun Feb 27 17:51:27 2022 -0800 |
committer | Joshua Haberman <jhaberman@gmail.com> | Sun Feb 27 17:51:27 2022 -0800 |
tree | 36655a59fca812d9d83b384a7d3eb62fd19ae81f | |
parent | 3a4c492e7994f0ae30b07509d317c90e82633372 [diff] [blame] |
Remaining fixes to make Python tests pass in google3.
diff --git a/python/message.c b/python/message.c index 11b3a08..095f56d 100644 --- a/python/message.c +++ b/python/message.c
@@ -1482,6 +1482,7 @@ void* closure) { PyUpb_CMessage* self = (void*)_self; if (self->ext_dict) { + Py_INCREF(self->ext_dict); return self->ext_dict; }