summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/python/py_tdbpack.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/python/py_tdbpack.c b/source/python/py_tdbpack.c
index 6181a4918e6..243cb446833 100644
--- a/source/python/py_tdbpack.c
+++ b/source/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: