small memory leak fix #225
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Hello, I was using integrating
libpkgconf
into my project and noticed some memory wasn't being cleaned up with the help of valgrind. I was already suspicious that there was no_deinit
function for personality, so it was pretty easy to track down. I'm not entirely sure this is the correct fix, because I haven't been able to determine if personality owns these resources, or if client is supposed to. If the latter is the case, let me know and I will move my clean up code to the client deinit function.I also added some code to close
error_msgout
if it got opened, because that was making valgrind upset too.Since the memory was still referenced, this is not that big of an issue, but I thought I might as well make a PR.