{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1740652363,"commit_time":1740744701,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"08c7c937dc0dbd1f92f73360e5d8b2bb2ee6afa8","message":"tidy-up: prefer `return` over `exit()`, fix fallouts\n\nTo avoid breaking the control flow and align to majority of code\nalready using `return`.\n\n`exit()` has the side-effect of suppressing leak detection in cases.\nFix fallouts detected after switching to `return`.\n\n- configure:\n  - fix `getaddrinfo` run test to call `freeaddrinfo()` to pacify ASAN,\n    and call `WSACleanup()` to deinit winsock2.\n  - fix `getifaddrs` run test to call `freeifaddrs()` to pacify ASAN.\n- tests/server:\n  - setup `atexit(win32_cleanup)` via `win32_init()`.\n  - return 2 instead of 1 on winsock2 init failures.\n  - sws: goto cleanup instead of `exit()` in `http_connect()`.\n    Follow-up to 02dfe7193704817184b522888ffa926e6b73f648 #7235\n- tests/client/http:\n  - cleanup memory to pacify ASAN in `h2-upgrade-extreme`,\n    `tls-session-reuse`.\n- examples:\n  - block_ip: fix memory leak reported by CI.\n  - http2-upload: avoid handle leaks.\n\nUntouched `exit()` calls, made from callbacks:\n- docs/examples: ephiperfifo.c, ghiper.c, hiperfifo.c\n- tests/libtest: lib582.c, lib655.c, lib670.c\n- tests/server: tftpd.c\n\nCloses #16507\n","parents":["2e585f564004e473b0163092fb687e051cec14ec"],"tree_hash":"cb080c4ae67182d142f2d55b690d9b9f4e0d053e"}