allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
17.78k stars 1.09k forks source link

Update hash table increment functions #2681

Closed cgzones closed 1 month ago

cgzones commented 1 month ago

Free the duplicated key in inc_su64() on failure.

Use the same pattern as in inc_su64() for inc_si32(), by duplicating the key after an empty lookup result. This simplifies the call sites ht_inc_cnt_overall() and ht_ins_seq() by avoiding a duplicate lookup.

allinurl commented 1 month ago

Merged. Appreciate you sending the pull request!