From 3e18df5daa04fe3851b20909e912489bfe98e6b9 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Mon, 27 Feb 2017 22:33:17 +0100 Subject: Fix memory leak in get_current_pinvalues() The ownership of the tuple reference is transferred to the caller, so the refcount should not be increased. --- type_decoder.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/type_decoder.c b/type_decoder.c index 7836640..313124d 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -427,8 +427,6 @@ static PyObject *get_current_pinvalues(const struct srd_decoder_inst *di) } } - Py_IncRef(py_pinvalues); - return py_pinvalues; } -- cgit v1.2.3-70-g09d2