diff options
author | Thomas Haller <thaller@redhat.com> | 2015-01-28 22:51:04 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-01-29 14:59:42 +0100 |
commit | 1c10cc51ff8917c671e90cc7f85838b31d2119b8 (patch) | |
tree | aaa9c89be1a0f419cb509c673a4f16adc85274ae /src/nm-auth-subject.c | |
parent | fe5c51726f1e210ebf5547df094a76dbcb748bbd (diff) | |
download | NetworkManager-1c10cc51ff8917c671e90cc7f85838b31d2119b8.tar.gz |
auth: fix memleak in _new_unix_process()
Diffstat (limited to 'src/nm-auth-subject.c')
-rw-r--r-- | src/nm-auth-subject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nm-auth-subject.c b/src/nm-auth-subject.c index 209f98e175..13133f2777 100644 --- a/src/nm-auth-subject.c +++ b/src/nm-auth-subject.c @@ -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); |