1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

pageant.c: turn a bare 'free' into sfree.

In normal builds this makes no difference, but in Windows builds with
the Minefield diagnostic system turned on, free()ing a Minefield-
allocated object causes a crash. Apparently I haven't tested Pageant
under Minefield for ages - only PuTTY, talking to an ordinary Pageant
I'd already started up.
This commit is contained in:
Simon Tatham 2019-07-06 18:49:17 +01:00
parent d7f254fdb0
commit c8918fea0b

View File

@ -936,7 +936,7 @@ void pageant_forget_passphrases(void)
char *pp = index234(passphrases, 0);
smemclr(pp, strlen(pp));
delpos234(passphrases, 0);
free(pp);
sfree(pp);
}
}