Skip Menu |

This queue is for tickets about the Term-Caca CPAN distribution.

Report information
The Basics
Id: 62971
Status: resolved
Priority: 0/
Queue: Term-Caca

Owner: Nobody in particular
Requestors: user42 [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: xc malloc
Date: Sun, 14 Nov 2010 10:54:39 +1100
To: bug-Term-Caca [...]
From: Kevin Ryde <user42 [...]>
Download (untitled) / with headers
text/plain 347b
Nosing around Caca.xs of Term::Caca 0.95, in _draw_polyline() and _draw_thin_polyline() I suppose if the malloc of yc fails then the xc block is leaked. As a suggestion the perl Newx() might be easier. I'd be inclined to prefer a croak or abort for an out-of-memory instead of an undef return which in theory would have to be checked each time.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to