Leaking memory in apk_atom_init
Hello,
in my D bindings for apk-tools I'm currently doing the following to open the database:
apk_atom_init();
apk_db_init(&this.db);
And the following to close the db:
if (this.db.open_complete)
{
apk_db_close(&this.db);
}
This will happen a lot of times during the lifetime of my DBus server, since I try to avoid holding the lock on the database for too long, so users aren't blocked from using the apk
CLI tool when the server isn't doing an operation. The problem is that apparently apk_atom_init
leaks a sizeable amount of memory every time and I can't free it because that's behind an ifdef for valgrind - I guess exactly because it complains there.