1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Fix a segfault in store_host_key.

Colin Harrison points out that I shouldn't sfree() a thing I allocated
with strbuf_new().
This commit is contained in:
Simon Tatham 2018-11-07 21:12:21 +00:00
parent d222ed4251
commit 453a149910

View File

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