mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 04:19:10 -04:00
FIx another memleak on OOM in evdns
This commit is contained in:
parent
73e85dd08f
commit
f2bff75ed8
2
evdns.c
2
evdns.c
@ -3159,6 +3159,8 @@ search_request_new(struct evdns_base *base, struct evdns_request *handle,
|
||||
handle->search_origname = mm_strdup(name);
|
||||
if (handle->search_origname == NULL) {
|
||||
/* XXX Should we dealloc req? If yes, how? */
|
||||
if (req)
|
||||
mm_free(req);
|
||||
return NULL;
|
||||
}
|
||||
handle->search_state = base->global_search_state;
|
||||
|
Loading…
x
Reference in New Issue
Block a user