Преглед на файлове

core: dns cache - destroy the item directly on remove

Daniel-Constantin Mierla преди 3 седмици
родител
ревизия
fee8356164
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/core/dns_cache.c

+ 2 - 1
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__)