From c8918fea0b65a3b525fec39beba4240d29989bff Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 6 Jul 2019 18:49:17 +0100 Subject: [PATCH] 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. --- pageant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pageant.c b/pageant.c index 819e5c9d..69a8920c 100644 --- a/pageant.c +++ b/pageant.c @@ -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); } }