gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] Patch: Fix ref-leak of PyObject_Call


From: Kurt Schwehr
Subject: [gpsd-dev] Patch: Fix ref-leak of PyObject_Call
Date: Tue, 30 May 2017 12:54:23 -0700

Tested with scons check.

This is my first use of git format-patch, so hopefully I haven't bungled anything.

-kurt

Author: Kurt Schwehr <address@hidden>

    Fix ref-leak of PyObject_Call.
    
    Py_XDECREF is slightly safer than Py_DECREF (not NULL-safe).
    
    https://docs.python.org/3/extending/extending.html
    
    The return value is a brand new object, or it is an existing object
    whose reference count has been incremented.

Attachment: 0001-Fix-ref-leak-of-PyObject_Call.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]