]> sigrok.org Git - libsigrokdecode.git/commit
Fix refcounting bug in set_new_condition_list()
authorMarcus Comstedt <redacted>
Sun, 26 Feb 2017 11:52:12 +0000 (12:52 +0100)
committerUwe Hermann <redacted>
Sun, 26 Feb 2017 13:56:56 +0000 (14:56 +0100)
commit066fbafdc3ba734a73b5f7fcfa1dbae67ddebf8a
tree18fda8ccb22b2f055e08f224e2cafec83ddf28ae
parente27d3e67cb69d54936399cd97a4c40c9842549a7
Fix refcounting bug in set_new_condition_list()

py_conditionlist is an owned reference (it gets passed to Py_DecRef()
at the end), so we need to increment the refcount when assigning it
from the borrowed reference py_conds.
type_decoder.c