Skip to content

Commit

Permalink
Fix a "struct evhttp_request* req" wrong usage bug. see #13
Browse files Browse the repository at this point in the history
  • Loading branch information
zieckey committed Mar 18, 2017
1 parent 39c47a4 commit 8d91e64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions evpp/http/service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@ struct Response {
buffer = nullptr;
}

LOG_TRACE << "free request " << req->uri;
// At this time, req is freed by evhttp framework probably.
// So don't use req any more.
// LOG_TRACE << "free request " << req->uri;
}

struct evhttp_request* req;
struct evhttp_request* req;
struct evbuffer* buffer;
};

Expand Down

0 comments on commit 8d91e64

Please sign in to comment.