diff options
Diffstat (limited to 'source3/python')
-rw-r--r-- | source3/python/py_tdbpack.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/python/py_tdbpack.c b/source3/python/py_tdbpack.c index 6181a4918e..243cb44683 100644 --- a/source3/python/py_tdbpack.c +++ b/source3/python/py_tdbpack.c @@ -1,7 +1,7 @@ /* -*- c-file-style: "python"; indent-tabs-mode: nil; -*- Python wrapper for Samba tdb pack/unpack functions - Copyright (C) Martin Pool 2002 + Copyright (C) Martin Pool 2002, 2003 NOTE PYTHON STYLE GUIDE @@ -638,6 +638,9 @@ pytdbunpack_buffer(char **pbuf, int *plen, PyObject *val_list) if (PyList_Append(val_list, str_obj) == -1) goto failed; + Py_DECREF(len_obj); + Py_DECREF(str_obj); + return val_list; failed: |