aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pam/PyPAM-0.5.0-dealloc.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-12-15 07:45:15 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-12-15 07:45:15 +0000
commit6928abc43e245aae98a620afa35a1c76c7e55417 (patch)
treecf1570ab2690681d6101b8b752f1871250c85dd8 /testing/py-pam/PyPAM-0.5.0-dealloc.patch
parent0648d40beb7f4599fae6376eb7e1eda69a6b0266 (diff)
downloadaports-6928abc43e245aae98a620afa35a1c76c7e55417.tar.bz2
aports-6928abc43e245aae98a620afa35a1c76c7e55417.tar.xz
testing/py-pam: new aport
Diffstat (limited to 'testing/py-pam/PyPAM-0.5.0-dealloc.patch')
-rw-r--r--testing/py-pam/PyPAM-0.5.0-dealloc.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/py-pam/PyPAM-0.5.0-dealloc.patch b/testing/py-pam/PyPAM-0.5.0-dealloc.patch
new file mode 100644
index 0000000000..b73dd0b08c
--- /dev/null
+++ b/testing/py-pam/PyPAM-0.5.0-dealloc.patch
@@ -0,0 +1,17 @@
+diff -up PyPAM-0.5.0/PAMmodule.c.dealloc PyPAM-0.5.0/PAMmodule.c
+--- PyPAM-0.5.0/PAMmodule.c.dealloc 2011-01-17 22:48:22.000000000 +0100
++++ PyPAM-0.5.0/PAMmodule.c 2011-01-18 21:24:59.000000000 +0100
+@@ -538,10 +538,11 @@ static void PyPAM_dealloc(PyPAMObject *s
+ free(self->service);
+ free(self->user);
+ free(self->conv);
+- pam_end(self->pamh, PAM_SUCCESS);
++ if (self->pamh)
++ pam_end(self->pamh, PAM_SUCCESS);
+ dlclose(self->dlh2);
+ dlclose(self->dlh1);
+- PyMem_DEL(self);
++ PyObject_Del(self);
+ }
+
+ static PyObject * PyPAM_getattr(PyPAMObject *self, char *name)