diff options
Diffstat (limited to 'src/Mayaqua')
-rw-r--r-- | src/Mayaqua/Encrypt.c | 1 | ||||
-rw-r--r-- | src/Mayaqua/Kernel.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Mayaqua/Encrypt.c b/src/Mayaqua/Encrypt.c index d93ef7d5..0757b090 100644 --- a/src/Mayaqua/Encrypt.c +++ b/src/Mayaqua/Encrypt.c @@ -2642,6 +2642,7 @@ bool RsaPrivateDecrypt(void *dst, void *src, UINT size, K *k) Unlock(openssl_lock);
if (ret <= 0)
{
+ Free(tmp);
return false;
}
diff --git a/src/Mayaqua/Kernel.c b/src/Mayaqua/Kernel.c index 28dd4b6e..2edc142e 100644 --- a/src/Mayaqua/Kernel.c +++ b/src/Mayaqua/Kernel.c @@ -566,7 +566,7 @@ void GetHomeDir(char *path, UINT size) if (GetEnv("HOMEDRIVE", drive, sizeof(drive)) &&
GetEnv("HOMEPATH", hpath, sizeof(hpath)))
{
- Format(path, sizeof(path), "%s%s", drive, hpath);
+ Format(path, size, "%s%s", drive, hpath);
}
else
{
|