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:
parent
d222ed4251
commit
453a149910
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user