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

void ldns_rr_list_deep_free ( ldns_rr_list rr_list  ) 

frees an rr_list structure and all rrs contained therein.

[in] rr_list the list to free

Definition at line 751 of file rr.c.

References ldns_struct_rr_list::_rrs, ldns_rr_free(), ldns_rr_list_deep_free(), ldns_rr_list_rr(), and ldns_rr_list_rr_count().

Referenced by ldns_get_rr_list_addr_by_name(), ldns_pkt_clone(), ldns_pkt_free(), ldns_pkt_reply_type(), ldns_pkt_rr_list_by_name_and_type(), ldns_pkt_rr_list_by_type(), ldns_rr_list_deep_free(), ldns_update_pkt_new(), and ldns_zone_deep_free().

      size_t i;
      if (rr_list) {
            for (i=0; i < ldns_rr_list_rr_count(rr_list); i++) {
                  ldns_rr_free(ldns_rr_list_rr(rr_list, i));

Generated by  Doxygen 1.6.0   Back to index