Free recv_buf in nbd_proxy
This commit is contained in:
@@ -55,6 +55,15 @@ protected:
|
|||||||
iovec read_iov = { 0 };
|
iovec read_iov = { 0 };
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
~nbd_proxy()
|
||||||
|
{
|
||||||
|
if (recv_buf)
|
||||||
|
{
|
||||||
|
free(recv_buf);
|
||||||
|
recv_buf = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static json11::Json::object parse_args(int narg, const char *args[])
|
static json11::Json::object parse_args(int narg, const char *args[])
|
||||||
{
|
{
|
||||||
json11::Json::object cfg;
|
json11::Json::object cfg;
|
||||||
@@ -322,6 +331,9 @@ public:
|
|||||||
delete cli;
|
delete cli;
|
||||||
delete epmgr;
|
delete epmgr;
|
||||||
delete ringloop;
|
delete ringloop;
|
||||||
|
cli = NULL;
|
||||||
|
epmgr = NULL;
|
||||||
|
ringloop = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void load_module()
|
void load_module()
|
||||||
|
|||||||
Reference in New Issue
Block a user