From b1745ff139bac8890bb73e09c3965f22304753ac Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Mon, 9 May 2005 08:54:32 +0000 Subject: Various fixes. --- psycopg/adapter_binary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'psycopg/adapter_binary.c') diff --git a/psycopg/adapter_binary.c b/psycopg/adapter_binary.c index 37ea50f..9b82e45 100644 --- a/psycopg/adapter_binary.c +++ b/psycopg/adapter_binary.c @@ -154,7 +154,7 @@ binary_str(binaryObject *self) if (self->buffer == NULL) { binary_quote(self); } - Py_INCREF(self->buffer); + Py_XINCREF(self->buffer); return self->buffer; } -- cgit v1.2.1