Logo Search packages:      
Sourcecode: ldns version File versions  Download package

void ldns_rr_free ( ldns_rr rr  ) 

frees an RR structure

Parameters:
[in] *rr the RR to be freed
Returns:
void

Definition at line 68 of file rr.c.

References ldns_struct_rr::_rdata_fields, ldns_rdf_deep_free(), ldns_rr_free(), ldns_rr_owner(), ldns_rr_rd_count(), and ldns_rr_rdf().

Referenced by ldns_get_rr_list_hosts_frm_fp_l(), ldns_pkt2buffer_wire(), ldns_pkt_free(), ldns_pkt_query_new_frm_str(), ldns_rr_compare_ds(), ldns_rr_free(), ldns_rr_list_deep_free(), ldns_rr_new_frm_str(), ldns_wire2pkt(), ldns_wire2rr(), and ldns_zone_deep_free().

{
      size_t i;
      if (rr) {
            if (ldns_rr_owner(rr)) {
                  ldns_rdf_deep_free(ldns_rr_owner(rr));
            }
            for (i = 0; i < ldns_rr_rd_count(rr); i++) {
                  ldns_rdf_deep_free(ldns_rr_rdf(rr, i));
            }
            LDNS_FREE(rr->_rdata_fields);
            LDNS_FREE(rr);
      }
}


Generated by  Doxygen 1.6.0   Back to index