mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 14:54:49 -04:00
Free dns/event bases in dns-example to avoid leaks
(cherry picked from commit 33e363f3dfcd21f5125134395e4a7b3531bc3066)
This commit is contained in:
parent
da4619b3c9
commit
27b59783f3
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user