1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Unix Pageant: fix further double-frees.

No need to sfree(err) before going to the cleanup code, because the
whole point of shared cleanup code is that that will do it for us.
This commit is contained in:
Simon Tatham 2015-05-15 11:02:33 +01:00
parent a8c4e67ff9
commit b5fd5969f4

View File

@ -355,7 +355,6 @@ static int unix_add_keyfile(const char *filename_str)
goto cleanup;
} else if (status == PAGEANT_ACTION_FAILURE) {
fprintf(stderr, "pageant: %s: %s\n", filename_str, err);
sfree(err);
ret = FALSE;
goto cleanup;
}
@ -380,7 +379,6 @@ static int unix_add_keyfile(const char *filename_str)
goto cleanup;
} else if (status == PAGEANT_ACTION_FAILURE) {
fprintf(stderr, "pageant: %s: %s\n", filename_str, err);
sfree(err);
ret = FALSE;
goto cleanup;
}