[packages/python-smbc] - updated to 1.0.13 - added -memory_leak.patch

charles charles at pld-linux.org
Sun Jul 22 18:29:32 CEST 2012


commit a67aed95c809a794db9284443ce250f394b60823
Author: Karol Krenski <charles at pld-linux.org>
Date:   Sun Jul 22 18:29:05 2012 +0200

    - updated to 1.0.13
    - added -memory_leak.patch

 python-smbc-memory_leak.patch | 18 ++++++++++++++++++
 python-smbc.spec              |  6 ++++--
 2 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/python-smbc-memory_leak.patch b/python-smbc-memory_leak.patch
new file mode 100644
index 0000000..6f6a2f8
--- /dev/null
+++ b/python-smbc-memory_leak.patch
@@ -0,0 +1,18 @@
+--- pysmbc-1.0.13/context.c.orig	2012-02-15 13:00:15.000000000 +0100
++++ pysmbc-1.0.13/context.c	2012-07-22 18:21:16.919596736 +0200
+@@ -78,6 +78,7 @@
+ 			 &use_username,
+ 			 &use_password))
+     {
++      Py_DECREF (result);
+       debugprintf ("<- auth_fn(), incorrect callback result\n");
+       return;
+     }
+@@ -85,6 +86,7 @@
+   strncpy (workgroup, use_workgroup, wgmaxlen);
+   strncpy (username, use_username, unmaxlen);
+   strncpy (password, use_password, pwmaxlen);
++  Py_DECREF (result);
+   debugprintf ("<- auth_fn(), got callback result\n");
+ }
+ 
diff --git a/python-smbc.spec b/python-smbc.spec
index 38aa707..a5ed00c 100644
--- a/python-smbc.spec
+++ b/python-smbc.spec
@@ -1,11 +1,12 @@
 Summary:	Python bindings for the libsmbclient API from Samba
 Name:		python-smbc
-Version:	1.0.12
+Version:	1.0.13
 Release:	1
 License:	GPL v2
 Group:		Libraries/Python
 Source0:	http://cyberelk.net/tim/data/pysmbc/pysmbc-%{version}.tar.bz2
-# Source0-md5:	129dd620f94e49af7d18ea689f21bcbf
+# Source0-md5:	019dbb3bc6ee217f7389a2330cda9fe0
+Patch0:		%{name}-memory_leak.patch
 URL:		http://cyberelk.net/tim/data/pysmbc/
 BuildRequires:	libsmbclient-devel
 BuildRequires:	python-devel >= 1:2.5
@@ -19,6 +20,7 @@ Python bindings for the libsmbclient API from Samba.
 
 %prep
 %setup -q -n pysmbc-%{version}
+%patch0 -p1
 
 %build
 CFLAGS="%{rpmcflags}"


More information about the pld-cvs-commit mailing list