mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 06:38:37 -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:
parent
d222ed4251
commit
453a149910
@ -454,7 +454,7 @@ void store_host_key(const char *hostname, int port,
|
|||||||
RegCloseKey(rkey);
|
RegCloseKey(rkey);
|
||||||
} /* else key does not exist in registry */
|
} /* else key does not exist in registry */
|
||||||
|
|
||||||
sfree(regname);
|
strbuf_free(regname);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user