mirror of
https://github.com/vgough/encfs.git
synced 2025-08-17 17:21:07 +02:00
fix memory leak in encfsctl showKey command
This commit is contained in:
@ -196,7 +196,11 @@ string Cipher::encodeAsString(const CipherKey &key,
|
||||
B64ToAscii(b64Key, b64Len);
|
||||
b64Key[b64Len - 1] = '\0';
|
||||
|
||||
return string((const char *)b64Key);
|
||||
string str((const char *)b64Key);
|
||||
delete[] b64Key;
|
||||
delete[] keyBuf;
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
} // namespace encfs
|
||||
|
Reference in New Issue
Block a user