From a6f2848787f6e25451ee5668bd4b3da1d2316476 Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Wed, 14 Aug 2013 23:27:58 -0400 Subject: [PATCH] Fix ref undercount in BSON extension. PYTHON-494 --- bson/_cbsonmodule.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bson/_cbsonmodule.c b/bson/_cbsonmodule.c index a1a25b4f7..c859344e0 100644 --- a/bson/_cbsonmodule.c +++ b/bson/_cbsonmodule.c @@ -1856,7 +1856,6 @@ static PyObject* get_value(PyObject* self, const char* buffer, int* position, evalue = msg; } PyErr_NormalizeException(&etype, &evalue, &etrace); - Py_XDECREF(msg); } } /* Steals references to args. */