Free dns/event bases in dns-example to avoid leaks

(cherry picked from commit 33e363f3dfcd21f5125134395e4a7b3531bc3066)
This commit is contained in:
Azat Khuzhin 2017-11-20 02:07:54 +03:00 committed by Azat Khuzhin
parent da4619b3c9
commit 27b59783f3
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

View File

@ -252,6 +252,8 @@ main(int c, char **v) {
} }
fflush(stdout); fflush(stdout);
event_base_dispatch(event_base); event_base_dispatch(event_base);
evdns_base_free(evdns_base, 1);
event_base_free(event_base);
return 0; return 0;
} }