commit ac0e86aa6c316e6b2125e6129f0a031292202143 from: Kyle Ackerman via: Thomas Adam date: Thu Apr 17 19:06:29 2025 UTC Plug some memory leaks in got-{send,fetch}-pack my_capabilities was leaked in both got-send-pack and got-fetch-pack and needed freeing it in both. ok op@ commit - b8d1864865aa67f39a11bb4f863540a31e69e03a commit + ac0e86aa6c316e6b2125e6129f0a031292202143 blob - 50e14e7cb3fab9aa95303325bfa33f5b37725560 blob + b95ba4c8c62233bee9618548ea14c835225b8b64 --- libexec/got-fetch-pack/got-fetch-pack.c +++ libexec/got-fetch-pack/got-fetch-pack.c @@ -847,6 +847,7 @@ done: free(default_id_str); free(refname); free(server_capabilities); + free(my_capabilities); return err; } blob - 953a8fa9da119adcc083c4ac6ddb194a83638d99 blob + 5f9ef0b8eae31b9e8f8bfc3dfb7c0bbb5fbe888a --- libexec/got-send-pack/got-send-pack.c +++ libexec/got-send-pack/got-send-pack.c @@ -603,6 +603,7 @@ done: free(id); free(refname); free(server_capabilities); + free(my_capabilities); return err; }