Fix cache leak issue

This commit is contained in:
Nick Peng
2019-03-15 00:33:44 +08:00
parent 7c51259dff
commit 63db66546c
4 changed files with 33 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ struct dns_cache {
unsigned int cname_ttl;
unsigned int ttl;;
int speed;
int hitnum;
atomic_t hitnum;
int del_pending;
time_t insert_time;
dns_type_t qtype;