SV *sv = newSV(0); leaks. You want SV *sv;
The other issue is because I forgot to cast it. newRV_noinc(hv) should be newRV_noinc(MUTABLE_SV(hv)).
Fixed in original.
In reply to Re^3: Passing integer pointer in XS?
by ikegami
in thread Passing integer pointer in XS?
by martin67
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |