chiark / gitweb /
journald: no need to free audit vars
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Apr 2013 13:48:12 +0000 (15:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Apr 2013 13:48:31 +0000 (15:48 +0200)
src/journal/journald-server.c

index 6f283df..53e3830 100644 (file)
@@ -543,10 +543,13 @@ static void dispatch_message_real(
                 machine_id[sizeof("_MACHINE_ID=") + 32] = "_MACHINE_ID=";
 
         char _cleanup_free_ *comm = NULL, *cmdline = NULL, *hostname = NULL,
-                *audit_session = NULL, *audit_loginuid = NULL,
                 *exe = NULL, *cgroup = NULL, *session = NULL,
                 *owner_uid = NULL, *unit = NULL, *selinux_context = NULL;
 
+#ifdef HAVE_AUDIT
+        char _cleanup_free_ *audit_session = NULL, *audit_loginuid = NULL;
+#endif
+
         sd_id128_t id;
         int r;
         char *t;