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

rjfarmer / gfort2py / 28711741961
82%

Build:
DEFAULT BRANCH: main
Ran 04 Jul 2026 04:01PM UTC
Jobs 1
Files 32
Run time 1min
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

04 Jul 2026 04:01PM UTC coverage: 82.327% (+0.03%) from 82.294%
28711741961

push

github

web-flow
Cache assumed-shape array descriptor ctype to fix per-call memory leak (#138)

* Cache assumed-shape array descriptor ctype to fix per-call memory leak

ftype_assumed_shape.ctype built three fresh ctypes.Structure subclasses
(_bounds14, _dtype_type, _fAllocArray) on every access. CPython never frees
Structure subclasses, so every call to a procedure with an assumed-shape
array argument leaked memory (~16 KB/call, measured) and created new
Structure subclasses without bound.

The descriptor layout depends only on (ndims, is_64bit()), so build the
class once and cache it keyed on that tuple. Behaviour is unchanged.

Adds a regression test that fails before this change (600 new
ctypes.Structure subclasses over 200 calls) and passes after.

6 of 6 new or added lines in 1 file covered. (100.0%)

2632 of 3197 relevant lines covered (82.33%)

0.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28711741961.1 04 Jul 2026 04:01PM UTC 32
82.33
GitHub Action Run
Source Files on build 28711741961
  • Tree
  • List 32
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d00b8836 on github
  • Prev Build on main (#28707227047)
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