mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 08:30:15 +01:00
auth: fix memleak in _new_unix_process()
This commit is contained in:
parent
fe5c51726f
commit
1c10cc51ff
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