Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymilter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
misc
pymilter
Commits
e9f67730
Commit
e9f67730
authored
20 years ago
by
Stuart Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Report context allocation error.
parent
2276762c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
miltermodule.c
+9
-3
9 additions, 3 deletions
miltermodule.c
with
9 additions
and
3 deletions
miltermodule.c
+
9
−
3
View file @
e9f67730
...
@@ -34,6 +34,9 @@ $ python setup.py help
...
@@ -34,6 +34,9 @@ $ python setup.py help
libraries=["milter","smutil","resolv"]
libraries=["milter","smutil","resolv"]
* $Log$
* $Log$
* Revision 1.4 2005/06/24 04:12:43 customdesigned
* Remove unused name argument to generic wrappers.
*
* Revision 1.3 2005/06/24 03:57:35 customdesigned
* Revision 1.3 2005/06/24 03:57:35 customdesigned
* Handle close called before connect.
* Handle close called before connect.
*
*
...
@@ -200,7 +203,7 @@ $ python setup.py help
...
@@ -200,7 +203,7 @@ $ python setup.py help
/* Yes, these are static. If you need multiple different callbacks, */
/* Yes, these are static. If you need multiple different callbacks, */
/* it's cleaner to use multiple filters. */
/* it's cleaner to use multiple filters
, or convert to OO method calls
. */
static
PyObject
*
connect_callback
=
NULL
;
static
PyObject
*
connect_callback
=
NULL
;
static
PyObject
*
helo_callback
=
NULL
;
static
PyObject
*
helo_callback
=
NULL
;
static
PyObject
*
envfrom_callback
=
NULL
;
static
PyObject
*
envfrom_callback
=
NULL
;
...
@@ -245,8 +248,11 @@ _get_context(SMFICTX *ctx) {
...
@@ -245,8 +248,11 @@ _get_context(SMFICTX *ctx) {
PyEval_AcquireThread
(
t
);
/* lock interp */
PyEval_AcquireThread
(
t
);
/* lock interp */
self
=
PyObject_New
(
milter_ContextObject
,
&
milter_ContextType
);
self
=
PyObject_New
(
milter_ContextObject
,
&
milter_ContextType
);
if
(
!
self
)
{
if
(
!
self
)
{
/* Can't pass on exception since we are called from libmilter */
/* Report and clear exception since we are called from libmilter */
if
(
PyErr_Occurred
())
{
PyErr_Print
();
PyErr_Clear
();
PyErr_Clear
();
}
PyThreadState_Clear
(
t
);
PyThreadState_Clear
(
t
);
PyEval_ReleaseThread
(
t
);
PyEval_ReleaseThread
(
t
);
PyThreadState_Delete
(
t
);
PyThreadState_Delete
(
t
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment