mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 01:13:12 +01:00
fix memory leak in encfsctl showKey command
This commit is contained in:
parent
0eb4641fd7
commit
b0b4f8de4d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user