[PATCH 0/2] Plug two memory leaks exposed via Meson
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Jan 29, 2025, 16:24 UTC
- Message-ID
- <20250129-b4-pks-memory-leaks-v1-0-79e41299eb0c@pks.im>
Hi,
I've had the need to play around with the memory leak sanitizer today and for the first time used it with Meson. Interestingly enough, a test run with Meson flags two memory leaks that our Makefile doesn't. I haven't found the time yet to figure out why that is, but this small patch series fixes both of these leaks.
Thanks!
Patrick
---
Patrick Steinhardt (2):
unix-socket: fix memory leak when chdir(3p) fails
scalar: free result of `remote_default_branch()`scalar.c | 4 +++- unix-socket.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
--- base-commit: da898a5c645ce9b6d72c2d39abe1bc3d48cb0fdb change-id: 20250129-b4-pks-memory-leaks-2a318e5afec1