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

davidbyttow / govips / 22742309762
37%

Build:
DEFAULT BRANCH: master
Ran 06 Mar 2026 12:02AM UTC
Jobs 1
Files 19
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

06 Mar 2026 12:00AM UTC coverage: 36.732% (+0.4%) from 36.365%
22742309762

push

github

web-flow
Fix memory leaks in vipsGetPoint and vipsImageGetAsString (#510)

* Fix memory leak in vipsGetPoint

The deferred g_free captured a nil pointer (evaluated at defer time,
before the C call populated it), so the C-allocated array was never
freed. Additionally, the returned Go slice was backed by C memory that
could be freed or reused.

Fix: copy C data into a Go-owned slice, then free the C allocation
immediately.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix memory leak in vipsImageGetAsString

The deferred freeCString captured a nil pointer (evaluated at defer
time, before the C call populated it), so the g_free-allocated string
from vips_image_get_as_string was never freed.

Fix: wrap in a closure so the variable is captured by reference and
evaluated when the deferred function actually executes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

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

2626 of 7149 relevant lines covered (36.73%)

0.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22742309762.1 06 Mar 2026 12:02AM UTC 19
36.73
GitHub Action Run
Source Files on build 22742309762
  • Tree
  • List 19
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b7aa4f17 on github
  • Prev Build on master (#22555782168)
  • Next Build on master (#22742312244)
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