mirror of
https://github.com/3proxy/3proxy.git
synced 2026-05-31 13:30:11 +08:00
Fix: non-initialized mutex (crash under Windows)
This commit is contained in:
parent
7c1bc48c85
commit
16af910f3a
@ -9,6 +9,7 @@ struct hashentry {
|
|||||||
|
|
||||||
|
|
||||||
void destroyhashtable(struct hashtable *ht){
|
void destroyhashtable(struct hashtable *ht){
|
||||||
|
if(!ht->ihashtable) return;
|
||||||
_3proxy_mutex_lock(&ht->hash_mutex);
|
_3proxy_mutex_lock(&ht->hash_mutex);
|
||||||
if(ht->ihashtable){
|
if(ht->ihashtable){
|
||||||
free(ht->ihashtable);
|
free(ht->ihashtable);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user