Memory leaks fixed.
Skip list (skip_destroy_list()) was not freeing the head. Dispatcher (dpt_destroy()) was not freeing routine_obj. Nameserver (ns_destroy()) was not freeing error response. Zone node (zn_destroy()) was not destroying the skip list of additional records. Zone node (zn_add_ref()) was not deleting the created zn_ar_rrsets structure if the value was merged in skip_insert(). Zone database destroying changed to delete zone nodes (because not all zone nodes are in the zone data structure). zds_destroy() modified to have the zone node destructor as param.
Showing
- src/other/skip-list.c 17 additions, 10 deletionssrc/other/skip-list.c
- src/other/skip-list.h 1 addition, 1 deletionsrc/other/skip-list.h
- src/server/dispatcher.c 1 addition, 0 deletionssrc/server/dispatcher.c
- src/server/name-server.c 1 addition, 0 deletionssrc/server/name-server.c
- src/tests/tests.c 1 addition, 1 deletionsrc/tests/tests.c
- src/zone/zone-data-structure.c 2 additions, 2 deletionssrc/zone/zone-data-structure.c
- src/zone/zone-data-structure.h 1 addition, 1 deletionsrc/zone/zone-data-structure.h
- src/zone/zone-database.c 30 additions, 5 deletionssrc/zone/zone-database.c
- src/zone/zone-node.c 32 additions, 2 deletionssrc/zone/zone-node.c
- src/zone/zone-node.h 2 additions, 2 deletionssrc/zone/zone-node.h
Loading
Please register or sign in to comment