mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 22:40:10 +01:00
auth: fix memleak in _new_unix_process()
(cherry picked from commit 1c10cc51ff)
This commit is contained in:
parent
9d9a33a109
commit
e2470c7d64
1 changed files with 2 additions and 1 deletions
|
|
@ -38,6 +38,7 @@
|
|||
#include "nm-enum-types.h"
|
||||
#include "nm-glib-compat.h"
|
||||
#include "NetworkManagerUtils.h"
|
||||
#include "gsystem-local-alloc.h"
|
||||
|
||||
G_DEFINE_TYPE (NMAuthSubject, nm_auth_subject, G_TYPE_OBJECT)
|
||||
|
||||
|
|
@ -175,7 +176,7 @@ _new_unix_process (DBusGMethodInvocation *context,
|
|||
NMAuthSubject *self;
|
||||
gboolean success = FALSE;
|
||||
gulong pid = 0, uid = 0;
|
||||
char *dbus_sender = NULL;
|
||||
gs_free char *dbus_sender = NULL;
|
||||
|
||||
g_return_val_if_fail (context || (connection && message), NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue