Skip to content

memory leak in nflog_nflog_setcb() #3

Description

@anApeThrummingAViola

In nflog_nflog_setcb(), after 'Py_XINCREF(temp)', 'temp' has a refcount of 2.
But the refcount of 'nflog_py_cb', to which 'temp' is later assigned, is only decremented once.
Thus, the PyObjects created will never be freed.
I suggest to remove 'Py_XINCREF(temp)' to resolve this (tested and works for me).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions