• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/python-pam/0001-dealloc.patch
Peter KorsgaardPeter Korsgaard committed 848ef692ae403 Dec 2014
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
[PATCH] fix two bugs in the PAM object deallocation
2
​
3
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=658955
4
​
5
Downloaded from:
6
http://pkgs.fedoraproject.org/cgit/PyPAM.git/plain/PyPAM-0.5.0-dealloc.patch
7
​
8
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9
diff -up PyPAM-0.5.0/PAMmodule.c.dealloc PyPAM-0.5.0/PAMmodule.c
10
--- PyPAM-0.5.0/PAMmodule.c.dealloc 2011-01-17 22:48:22.000000000 +0100
11
+++ PyPAM-0.5.0/PAMmodule.c 2011-01-18 21:24:59.000000000 +0100
12
@@ -538,10 +538,11 @@ static void PyPAM_dealloc(PyPAMObject *s
13
     free(self->service);
14
     free(self->user);
15
     free(self->conv);
16
-    pam_end(self->pamh, PAM_SUCCESS);
17
+    if (self->pamh)
18
+        pam_end(self->pamh, PAM_SUCCESS);
19
     dlclose(self->dlh2);
20
     dlclose(self->dlh1);
21
-    PyMem_DEL(self);
22
+    PyObject_Del(self);
23
 }
24
 
25
 static PyObject * PyPAM_getattr(PyPAMObject *self, char *name)
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.