From 013eb41036645175b5f35a8bf6a82f231abb3083 Mon Sep 17 00:00:00 2001 From: behackett Date: Mon, 24 Jun 2013 18:59:06 -0700 Subject: [PATCH] Really fix the bug Coverity found earlier... --- bson/_cbsonmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bson/_cbsonmodule.c b/bson/_cbsonmodule.c index 1dc5914e2..4b2b9ede9 100644 --- a/bson/_cbsonmodule.c +++ b/bson/_cbsonmodule.c @@ -1552,7 +1552,7 @@ static PyObject* get_value(PyObject* self, const char* buffer, int* position, Py_DECREF(args); Py_DECREF(kwargs); - Py_XDECREF(data); + Py_DECREF(data); if (!value) { return NULL; } @@ -1563,7 +1563,7 @@ static PyObject* get_value(PyObject* self, const char* buffer, int* position, uuiderror: Py_DECREF(args); Py_DECREF(kwargs); - Py_DECREF(data); + Py_XDECREF(data); return NULL; }