[Redirector] Fix memory leak

This commit is contained in:
Connection Refused
2021-10-04 18:46:32 +08:00
parent 375fd13119
commit 9bd45ed39a
2 changed files with 2 additions and 2 deletions

View File

@@ -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()

View File

@@ -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;
} }