File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -835,6 +835,8 @@ main(int argc, char **argv)
835835 && value == GETDNS_EXTENSION_TRUE )
836836 dnssec_validation = 1 ;
837837 }
838+ getdns_list_destroy (api_info_keys );
839+ api_info_keys = NULL ;
838840 if ( !dnssec_validation
839841 && !getdns_dict_get_dict (api_information , "all_context"
840842 , & all_context )
@@ -848,6 +850,8 @@ main(int argc, char **argv)
848850 && value == GETDNS_EXTENSION_TRUE )
849851 dnssec_validation = 1 ;
850852 }
853+ getdns_list_destroy (api_info_keys );
854+ api_info_keys = NULL ;
851855 }
852856 }
853857 if (print_api_info ) {
@@ -972,6 +976,8 @@ main(int argc, char **argv)
972976 getdns_context_run (context );
973977 }
974978
979+ if (api_info_keys )
980+ getdns_list_destroy (api_info_keys );
975981 getdns_dict_destroy (api_information );
976982 getdns_context_destroy (context );
977983
You can’t perform that action at this time.
0 commit comments