alibaba / xquic

XQUIC Library released by Alibaba is a cross-platform implementation of QUIC and HTTP/3 protocol.
Apache License 2.0
1.7k stars 327 forks source link

[-]Remove function call which's not needed. #137

Closed wangweiwei1188 closed 2 years ago

wangweiwei1188 commented 2 years ago

Remove function call which's not needed.

ruiqizhou commented 2 years ago

I think it would be better if you could briefly explain about why this function is not needed.

wangweiwei1188 commented 2 years ago

I think it would be better if you could briefly explain about why this function is not needed.

1) xqc_str_hash_table_t *hash_table = xqc_malloc(sizeof(xqc_str_hash_table_t)); The hash_table 's not initialized to 0, so hash_tab->count's value is random. 2) xqc_str_hash_release(hash_table) when xqc_str_hash_init was failed is not necessary.And may execute additional instructions according to hash_tab->count's value.