Module: kamailio Branch: master Commit: fee835616425723f81b433b561aba54fbfd17045 URL: https://github.com/kamailio/kamailio/commit/fee835616425723f81b433b561aba54f...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2025-07-01T14:43:01+02:00
core: dns cache - destroy the item directly on remove
---
Modified: src/core/dns_cache.c
---
Diff: https://github.com/kamailio/kamailio/commit/fee835616425723f81b433b561aba54f... Patch: https://github.com/kamailio/kamailio/commit/fee835616425723f81b433b561aba54f...
---
diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c index 2ed1b21f143..cb343a81184 100644 --- a/src/core/dns_cache.c +++ b/src/core/dns_cache.c @@ -508,7 +508,8 @@ inline static void _dns_hash_remove_entry( LM_DBG("item %p with high refcnt %d (%s:%u)\n", e, atomic_get_int(&e->refcnt), fpath, line); } - dns_hash_put(e); + /* item unlinked - destroy it */ + dns_destroy_entry(e); }
#define _dns_hash_remove(e) _dns_hash_remove_entry(e, __FILE__, __LINE__)