From 453a1499101f027c72eaf2e36b58c8884776af7a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 7 Nov 2018 21:12:21 +0000 Subject: [PATCH] Fix a segfault in store_host_key. Colin Harrison points out that I shouldn't sfree() a thing I allocated with strbuf_new(). --- windows/winstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/winstore.c b/windows/winstore.c index 3b80e147..a57cd357 100644 --- a/windows/winstore.c +++ b/windows/winstore.c @@ -454,7 +454,7 @@ void store_host_key(const char *hostname, int port, RegCloseKey(rkey); } /* else key does not exist in registry */ - sfree(regname); + strbuf_free(regname); } /*