• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

giampaolo / psutil / 3069
93%

Build:
DEFAULT BRANCH: master
Ran 13 Nov 2019 01:55PM UTC
Jobs 1
Files 4
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3069

push

travis-ci

giampaolo
Use Py_CLEAR instead of Py_DECREF to also set the variable to NULL (#1616)

These files contain loops that convert system data into python objects
and during the process they create objects and dereference their
refcounts after they have been added to the resulting list.

However, in case of errors during the creation of those python objects,
the refcount to previously allocated objects is dropped again with
Py_XDECREF, which should be a no-op in case the paramater is NULL. Even
so, in most of these loops the variables pointing to the objects are
never set to NULL, even after Py_DECREF is called at the end of the loop
iteration. This means, after the first iteration, if an error occurs
those python objects will get their refcount dropped two times,
resulting in a possible double-free.

2148 of 2342 relevant lines covered (91.72%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3069.1 13 Nov 2019 01:55PM UTC 0
91.72
Travis Job 3069.1
Source Files on build 3069
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3069
  • 7d512c8e on github
  • Prev Build on master (#3068)
  • Next Build on master (#3071)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc