Skip to content

Commit

Permalink
Fix file memory free and new default samples
Browse files Browse the repository at this point in the history
  • Loading branch information
gentilkiwi committed May 15, 2017
1 parent 9db6fde commit 959bcf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wanadecrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ int wmain(int argc, wchar_t * argv[])
else wprintf(L"ERROR: WANACRY! magic number not found\n");
}
else wprintf(L"ERROR: no \'.\' at the end of the user file ?\n");
LocalFree(pbRsaKey);
LocalFree(pbEncData);
}
else wprintf(L"ERROR: reading userfile \'%s\': %u\n", argv[2], GetLastError());
LocalFree(pbEncData);
LocalFree(pbRsaKey);
}
else wprintf(L"ERROR: reading privatekey file \'%s\': %u\n", argv[1], GetLastError());
}
Expand Down
4 changes: 4 additions & 0 deletions wanadecrypt.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Microsoft Visual Studio Solution File, Format Version 11.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wanadecrypt", "wanadecrypt.vcxproj", "{CBED504E-DD3C-42EC-A4D5-F5D6FC917A13}"
EndProject
Global
GlobalSection(SubversionScc) = preSolution
Svn-Managed = True
Manager = AnkhSVN - Subversion Support for Visual Studio
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Release|Win32 = Release|Win32
EndGlobalSection
Expand Down

0 comments on commit 959bcf0

Please sign in to comment.