diff --git a/Terminator/Terminator.cpp b/Terminator/Terminator.cpp index 20e1819..d5474eb 100644 --- a/Terminator/Terminator.cpp +++ b/Terminator/Terminator.cpp @@ -211,6 +211,7 @@ int main(void) { NULL, 0, NULL, NULL)) { printf("Failed to register the process in the trusted list %X !!\n", IOCTL_REGISTER_PROCESS); + CloseHandle(hDevice); return (-1); }