Created attachment 300355 [details]
Memory leak fix for libpsx.
Kalen Hall has reported a Valgrind detected memory leak associated with a multi-threaded program linked against libcap and libpsx. Kalen has provided the attached patch to resolve it.
I'm filing this bug to track committing this fix. I first want to confirm that in-flight PSX interrupts don't trip over this in some subtle way.
This should be fixed with:
Will include it in libcap-2.64 (which will be the next release, likely within a month).
It looks like this wasn't a complete fix after all. When running `make test` in the build tree, I see `libcap_psx_test` processes hanging around.
I'm hopeful this fixes that problem:
It eliminated the unexited `libcap_psx_test` binaries in my many subsequent test runs.
This is included in libcap-2.64. That release happened today.