CR1333: Fix memory leak when unpacking some structures.
authorMartin Pool <mbp@samba.org>
Thu, 12 Dec 2002 05:24:55 +0000 (05:24 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 12 Dec 2002 05:24:55 +0000 (05:24 +0000)
commit1e63dc101a5085a46b9632ba657e5d5cd7505751
tree861ac6a3aa313b3aef17efa4e6ca6da9b069ef1b
parent3bb4bd3ed642a61e54c44c40c31f0e2242977614
CR1333: Fix memory leak when unpacking some structures.

* (pytdbunpack_item): PyList_Append creates an additional reference to
  the appended object.  Therefore, release the initial reference after
  it's added to the list.
source/python/py_tdbpack.c