memory leak in concurrent task interface

Bug #380279 reported by Dennis Schön
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman::XS
Fix Released
Medium
Dennis Schön

Bug Description

after $client->run_tasks() the task object is never freed, causing a
memory leak.

run the included sample client and watch the process size. On
my system is grows roughly by 1MB every second.

example:
use Gearman::XS qw(:constants);
use Gearman::XS::Client;

my $client = new Gearman::XS::Client;
$client->add_server();

while (1) {
 $client->add_task("reverse", "blubb");
 $client->run_tasks();
}

Related branches

Changed in gearmanxs:
assignee: nobody → Dennis Schön (roccoblues)
importance: Undecided → Medium
milestone: none → 0.2
status: New → Confirmed
Changed in gearmanxs:
status: Confirmed → Fix Committed
Changed in gearmanxs:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.