mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
[Redirector] Fix memory leak
This commit is contained in:
@@ -34,8 +34,8 @@ void ProcessPacket(ENDPOINT_ID id, SOCKADDR_IN6 target, const char* packet, int
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete options;
|
|
||||||
delete[] packet;
|
delete[] packet;
|
||||||
|
delete[] options;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DNSHandler::Init()
|
bool DNSHandler::Init()
|
||||||
|
|||||||
@@ -370,5 +370,5 @@ void udpBeginReceive(ENDPOINT_ID id, SocksHelper::PUDP conn, PNF_UDP_OPTIONS opt
|
|||||||
nf_udpPostReceive(id, (unsigned char*)&target, buffer, length, options);
|
nf_udpPostReceive(id, (unsigned char*)&target, buffer, length, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete options;
|
delete[] options;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user