Thanks to "Iceberg" who reported this issue and provided the patch via
rt.cpan.org.
Signed-off-by: Florian Forster <octo@verplant.org>
Revision history for Perl extension Net::Oping.
+1.02 Tue Feb 17 08:52:25 2009
+ - Fix a memory leak in _ping_iterator_get_hostname() [fixes RT#37066]
+ Thanks to "Iceberg" for reporting this issue and providing the patch.
+
1.01 Sun Jan 27 16:08:03 2008
- Have `Makefile.PL' exit if the header file <oping.h> cannot be found
_before_ a Makefile is generated. This is done because
# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: Net-Oping
-version: 1.01
+version: 1.02
version_from: lib/Net/Oping.pm
installdirs: site
requires:
OUTPUT:
RETVAL
-char *
+void
_ping_iterator_get_hostname (iter)
pingobj_iter_t *iter
- CODE:
+ PPCODE:
char *buffer;
size_t buffer_size;
int status;
- RETVAL = NULL;
-
do {
buffer = NULL;
buffer_size = 0;
if (status != 0)
break;
- RETVAL = buffer;
+ XPUSHs (sv_2mortal (newSVpvn(buffer,buffer_size)));
+ free(buffer);
} while (0);
- OUTPUT:
- RETVAL
const char *
_ping_get_error (obj)
-Net::Oping version 1.01
+Net::Oping version 1.02
=======================
ICMP latency measurement module using the oping library.
use Carp (qw(cluck confess));
-our $VERSION = '1.01';
+our $VERSION = '1.02';
require XSLoader;
XSLoader::load ('Net::Oping', $VERSION);