Skip Menu |

This queue is for tickets about the ZeroMQ CPAN distribution.

Report information
The Basics
Id: 69572
Status: open
Priority: 0/
Queue: ZeroMQ

People
Owner: Nobody in particular
Requestors: mkubski [...] websense.com
Cc:
AdminCc:

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



Subject: zmq_msg_close does not free memory
Date: Tue, 19 Jul 2011 11:32:04 +0100
To: "bug-ZeroMQ [...] rt.cpan.org" <bug-ZeroMQ [...] rt.cpan.org>
From: "Kubski, Michal" <mkubski [...] websense.com>
Hi, I found out that PerlZMQ_Raw_zmq_msg_close in ZeroMQ-0.15 leaks memory as it does not free the pointer after calling zmq_msg_close. Please find a patch fixing it attached. Best regards, Michal Kubski Protected by Websense Hosted Email Security -- www.websense.com

Message body is not shown because sender requested not to inline it.

https://github.com/lestrrat/ZeroMQ- Perl/commit/8b1aacc606a61936d807becbc4ba6f351d3c81be Can you verify this work for you?
Subject: RE: [rt.cpan.org #69572] zmq_msg_close does not free memory
Date: Tue, 19 Jul 2011 14:07:44 +0100
To: "bug-ZeroMQ [...] rt.cpan.org" <bug-ZeroMQ [...] rt.cpan.org>
From: "Kubski, Michal" <mkubski [...] websense.com>
Yes, however on the second thought, I thought it would be better to stick Safefree() call in PerlZMQ_Raw_Message_mg_free. I am not "fluent" in Perl XS at all so it did not come obvious. Please find a new patch attached and a crude test case to prove it. Best regards, Michal Show quoted text
________________________________________ From: Daisuke Maki via RT [bug-ZeroMQ@rt.cpan.org] Sent: 19 July 2011 12:30 To: Kubski, Michal Subject: [rt.cpan.org #69572] zmq_msg_close does not free memory <URL: https://rt.cpan.org/Ticket/Display.html?id=69572 > https://github.com/lestrrat/ZeroMQ- Perl/commit/8b1aacc606a61936d807becbc4ba6f351d3c81be Can you verify this work for you? To report this as spam, please forward to spam@websense.com. Thank you. Protected by Websense Hosted Email Security -- www.websense.com

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.