mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 11:02:48 -05: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:
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user