Skip to content
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);
Comment thread
erlend-aasland marked this conversation as resolved.
Py_XDECREF(openlog_ret);
}

Py_BEGIN_ALLOW_THREADS;
Expand Down