Hello,
recently a colleague of mine has reposted me an email which can be found
in the archive here:
http://unbound.net/pipermail/unbound-users/2011-April/001802.html
The leak appears to originate in the conversion from ldns RR to a
string. The patch fixing this issue is in the attachment.
Best regards,
K.
Index: trunk/pythonmod/interface.i
===================================================================
--- trunk/pythonmod/interface.i (revision 2480)
+++ trunk/pythonmod/interface.i (working copy)
@@ -868,6 +868,15 @@
void log_query_info(enum verbosity_value v, const char* str, struct
query_info* qinf);
void regional_log_stats(struct regional *r);
+// Free allocated memory from marked sources returning corresponding types
+%typemap(newfree, noblock = 1) char * {
+ free($1);
+}
+
+// Mark as source returning newly allocated memory
+%newobject ldns_rr_type2str;
+%newobject ldns_rr_class2str;
+
// LDNS functions
char *ldns_rr_type2str(const uint16_t atype);
char *ldns_rr_class2str(const uint16_t aclass);
_______________________________________________
Unbound-users mailing list
[email protected]
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users