Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: XS DESTROY not invoked

by Anonymous Monk
on Sep 24, 2012 at 09:16 UTC ( #995325=note: print w/ replies, xml ) Need Help??


in reply to XS DESTROY not invoked

Maybe whatever type of object you have, it is not blessed in the right package?

Its easy to find out what you have by using plain print

Also, tye says : don't do in XS what you can do in perl

That might translate to

sub OpenCA::OpenSSL::CRL::new { my $blah = OpenCA::OpenSSL::CRL::_new_from_der(@_); bless $blah, 'OpenCA::OpenSSL::CRL'; } sub OpenCA::OpenSSL::CRL::DESTROY { OpenCA::OpenSSL::CRL::X509_CRL_free(@_); }


Comment on Re: XS DESTROY not invoked
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995325]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-11-23 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (134 votes), past polls