diff options
author | 2013-04-08 15:48:12 +0200 | |
---|---|---|
committer | 2013-04-08 15:48:31 +0200 | |
commit | 7120511888321c40810a36c8da96c7d09e464f5b (patch) | |
tree | c5acdb17126a2b6c3c820f70a9a15bac41af7fc9 | |
parent | journald: drop two more memory allocations (diff) | |
download | systemd-7120511888321c40810a36c8da96c7d09e464f5b.tar.gz systemd-7120511888321c40810a36c8da96c7d09e464f5b.tar.bz2 systemd-7120511888321c40810a36c8da96c7d09e464f5b.zip |
journald: no need to free audit vars
-rw-r--r-- | src/journal/journald-server.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 6f283df74..53e383011 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -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; |