mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +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[] options;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
delete options;
|
||||
delete[] options;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user