Subject: | Memory leak in module Geo-Proj4-1.09 |
The "transform" method has a memory leak: one lost REF after every call of function.
I used Devel::MAT::Dumper and pmat-diff util
1.pmat contain memory dump before transform
2.pmat contain memory dump after transform:
# pmat-diff 1.pmat 2.pmat
A B
SCALAR(PV) at 0x564997cb16b0
SCALAR(NV) at 0x564997cb16c8 (this is coordinate X)
SCALAR(PV) at 0x564997cb1728 (this is dump file name)
SCALAR(NV) at 0x564997cb1770 (this is coordinate Y)
REF() at 0x564997cb1908 (LOST REF! Interpreter can't access it anymore)
ARRAY(2) at 0x564997cb19b0 (this is coordinates, array ref)
---
1 unique to A
5 unique to B
6925 common
"REF() at 0x564997cb1908" have a refcount, but actually thereis no objects, referencing on it:
Show quoted text
pmat> show 0x564997cb1908
REF() at 0x564997cb1908 with refcount 1
size 24 bytes
Show quoted textpmat> identify 0x564997cb1908
REF() at 0x564997cb1908 is:
└─not found
I used your *.t files to make a dumps: add a Dumper::dump, then "make test". Dumps are attached.
"inverse" and "forward" methods are OK.
Subject: | pmatdumps.tgz |
Message body not shown because it is not plain text.