summaryrefslogtreecommitdiff
path: root/type_decoder.c
diff options
context:
space:
mode:
authorMarcus Comstedt <marcus@mc.pp.se>2017-02-27 22:33:17 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2017-02-28 15:00:48 +0100
commit3e18df5daa04fe3851b20909e912489bfe98e6b9 (patch)
tree367cc7112ca252a3749dd045a66816708e8da2d4 /type_decoder.c
parent01f15bdf8e0c9960991544d19848b81a67e3d423 (diff)
downloadlibsigrokdecode-3e18df5daa04fe3851b20909e912489bfe98e6b9.tar.gz
libsigrokdecode-3e18df5daa04fe3851b20909e912489bfe98e6b9.zip
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.
Diffstat (limited to 'type_decoder.c')
-rw-r--r--type_decoder.c2
1 files changed, 0 insertions, 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;
}