Skip Menu |

This queue is for tickets about the Quota CPAN distribution.

Report information
The Basics
Id: 31957
Status: resolved
Priority: 0/
Queue: Quota

People
Owner: Nobody in particular
Requestors: eneq [...] mail.ru
Cc:
AdminCc:

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



Subject: Quota-1.6.1 memory leak
Looks like quota-1.6.1 have memory leak. Follwed patch help me: --- Quota.xs.orig 2007-11-24 16:18:13.000000000 +0300 +++ Quota.xs 2007-12-17 22:55:57.000000000 +0300 @@ -124,6 +124,7 @@ timeout.tv_usec = (quota_rpc_cfg.timeout % 1000) * 1000; clnt_stat = clnt_call(client, procnum, inproc, in, outproc, out, timeout); + if (client->cl_auth) auth_destroy(client->cl_auth); if (client) clnt_destroy(client); return ((int) clnt_stat);
The Linux man page on clnt_destroy() is unclear on this (IMHO), but on older SunOS man pages it's expressly noted that auth_destroy() must be called before. So both your complaint and solution seem correct. Fixed in release 1.6.2 - thanks for the bug report.