8000 gh-95011: Migrate syslog module to Argument Clinic by noamcohen97 · Pull Request #95012 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-95011: Migrate syslog module to Argument Clinic #95012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Oct 8, 2022
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
syslog: fix ref leak
  • Loading branch information
noamcohen97 committed Jul 26, 2022
commit dde4e7cdffba6aabeb5582b01ba9b1d5240197d3
3 changes: 2 additions & 1 deletion Modules/syslogmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ syslog_syslog_impl(PyObject *module, int group_left_1, int priority,

/* if log is not opened, open it now */
if (!S_log_open) {
syslog_openlog_impl(module, NULL, 0, LOG_USER);
PyObject *openlog_ret = syslog_openlog_impl(module, NULL, 0, LOG_USER);
Py_XDECREF(openlog_ret);
}

Py_BEGIN_ALLOW_THREADS;
Expand Down
0