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)
commitaabcd65020396105c683ede6fd9b5bb01891b098
treebdeb77436b156abab0a51e4bbb962d7150936647
parent022a8537811115b20e21c3e7551d465fe606cb44
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.
(This used to be commit 1e63dc101a5085a46b9632ba657e5d5cd7505751)
source3/python/py_tdbpack.c