mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-11 17:36:44 -04:00
dir: Free result of polkit_subject_to_string
Fixes: 1372e16d ("dir: Check parental control authorization via system bus name")
This commit is contained in:
@@ -17351,12 +17351,15 @@ static void
|
||||
...)
|
||||
{
|
||||
#ifdef HAVE_LIBSYSTEMD
|
||||
const char *installation = source ? source : flatpak_dir_get_name_cached (self);
|
||||
const char *subject = self->subject ? polkit_subject_to_string (self->subject) : "(none)";
|
||||
const char *installation;
|
||||
g_autofree char *subject = NULL;
|
||||
char message[1024];
|
||||
int len;
|
||||
va_list args;
|
||||
|
||||
installation = source ? source : flatpak_dir_get_name_cached (self);
|
||||
subject = self->subject ? polkit_subject_to_string (self->subject) : g_strdup ("(none)");
|
||||
|
||||
len = g_snprintf (message, sizeof (message), "%s: ", installation);
|
||||
|
||||
va_start (args, format);
|
||||
|
||||
Reference in New Issue
Block a user