зеркало из https://github.com/github/putty.git
A few more missing frees.
Naturally I didn't quite manage to catch _everything_ Coverity reported to me in my first pass through the results.
This commit is contained in:
Родитель
991d30412d
Коммит
efdbe568e2
|
@ -1313,11 +1313,15 @@ int pageant_add_keyfile(Filename *filename, const char *passphrase,
|
|||
if (keylist) {
|
||||
if (keylistlen < 4) {
|
||||
*retstr = dupstr("Received broken key list from agent");
|
||||
sfree(keylist);
|
||||
sfree(blob);
|
||||
return PAGEANT_ACTION_FAILURE;
|
||||
}
|
||||
nkeys = toint(GET_32BIT(keylist));
|
||||
if (nkeys < 0) {
|
||||
*retstr = dupstr("Received broken key list from agent");
|
||||
sfree(keylist);
|
||||
sfree(blob);
|
||||
return PAGEANT_ACTION_FAILURE;
|
||||
}
|
||||
p = keylist + 4;
|
||||
|
|
Загрузка…
Ссылка в новой задаче