FIx another memleak on OOM in evdns

This commit is contained in:
George Danchev 2012-09-12 20:12:03 -04:00 committed by Nick Mathewson
parent 73e85dd08f
commit f2bff75ed8

View File

@ -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;