[ldns-users] decoupling rr and rdf in the python wrapper
willem at NLnetLabs.nl
Tue May 17 21:03:16 UTC 2011
Thanks for the fix. I've applied the patch in trunk!
Best regards, Willem
Op 05-05-11 11:04, Bedrich Kosata schreef:
> as I wrote some time ago, there is still a problem with the ldns
> Python wrapper, because an RR shares its data with the included RDF
> and if the RDF is stored in a variable and the RR is garbage
> collected, the RDF data is no longer available.
> I attach two scripts that demonstrate this problem (one gives empty
> RDF instead of the actual data and one segfaults).
> I also attach a patch which clones all RDFs when retreived from an RR
> and also when RDF is set to an RR. This should decouple the RDF and RR
> data completely in the Python wrapper, thus making it possible for the
> objects to be garbage collected in any order at any time.
> Best regards
> p.s.- as with the patch in the previous email, the patch is against
> the current svn version.
> ldns-users mailing list
> ldns-users at open.nlnetlabs.nl
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ldns-users