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

davidbyttow / govips / 22742309762 / 1
39%
master: 39%

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

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>

2626 of 7149 relevant lines covered (36.73%)

0.39 hits per line

Source Files on job 22742309762.1
  • Tree
  • List 19
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22742309762
  • b7aa4f17 on github
  • Prev Job for on master (#22555782168.1)
  • Next Job for on master (#22742312244.1)
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