http: httpreq mem leak fix if multiple requests are send via the conn object
MODIFY
src/http/request.c
src/http/request.c
@@ -228,14 +228,13 @@ static void resp_handler(int err, const struct http_msg *msg, void *arg)
if (err)
goto disconnect;
- mem_deref(abuf);
- mem_deref(basic);
- return;
+ goto out;
disconnect:
if (conn && conn->resph)
conn->resph(err, msg, conn->arg);
+ out:
mem_deref(abuf);
mem_deref(basic);
mem_deref(conn);

http: httpreq mem leak fix if multiple requests are send via the conn object