g_object_unref() memory leak
g_object_unref() exist memory leak
software version: kernel:4.19 polkit:0.115
test code:
#include <polkit/polkit.h>
int main(int argc, char *argv[])
{
int i;
while (1)
{
PolkitAuthority *pa = NULL;
pa = polkit_authority_get_sync(NULL, NULL);
g_object_unref(pa);
sleep(1);
}
return 0;
}
There have 4 GB memory leak when execute this program in three hours.
The original issue : #130