Skip to content

Commit 7eea3e3

Browse files
auth: call GLib iteration loop if needed
Should fix a memory leak in Polkit. Thanks to Alex Shargalin for the bug report and patch "IsClientAuthorized() memory leak #87" #87
1 parent 6667870 commit 7eea3e3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/auth.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ unsigned IsClientAuthorized(int socket, const char* action, const char* reader)
177177
cleanup1:
178178
g_object_unref(authority);
179179

180+
while (g_main_context_pending(NULL))
181+
g_main_context_iteration(NULL, TRUE);
182+
180183
return ret;
181184
}
182185

0 commit comments

Comments
 (0)