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
Родитель d7f254fdb0
Коммит c8918fea0b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);
}
}