From 94888f538a84f66b6d13697b5178dbf24d09f2c9 Mon Sep 17 00:00:00 2001 From: Stephan E Date: Tue, 23 Nov 2021 11:51:24 +0100 Subject: [PATCH] issue #3, memory leak in nflog_nflog_setcb() --- nflog.c | 1 - 1 file changed, 1 deletion(-) diff --git a/nflog.c b/nflog.c index f11e3b0..3db6b02 100644 --- a/nflog.c +++ b/nflog.c @@ -58,7 +58,6 @@ static PyObject *nflog_nflog_setcb(PyObject *dummy, PyObject *args) PyErr_SetString(PyExc_TypeError, "parameter must be callable"); return NULL; } - Py_XINCREF(temp); Py_XDECREF(nflog_py_cb); nflog_py_cb = temp;