summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-04-18 10:16:17 +0200
committerHarald Hoyer <harald@redhat.com>2013-04-18 10:16:17 +0200
commitbef89518003a37f0fbd2f53beaa6bb7d01efed45 (patch)
treed3f53da28756ea88e08b88d14d26ae8bfd2b6288 /src
parent7fd1b19bc9e9f5574f2877936b8ac267c7706947 (diff)
sd-login.c: fixup for d70964d0
p pointer is not _cleanup_free_
Diffstat (limited to 'src')
-rw-r--r--src/login/sd-login.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/sd-login.c b/src/login/sd-login.c
index 45523921b5..30e07a9322 100644
--- a/src/login/sd-login.c
+++ b/src/login/sd-login.c
@@ -74,7 +74,8 @@ _public_ int sd_pid_get_machine_name(pid_t pid, char **name) {
_public_ int sd_pid_get_owner_uid(pid_t pid, uid_t *uid) {
int r;
- _cleanup_free_ char *root = NULL, *cgroup = NULL, *p = NULL, *cc = NULL;
+ _cleanup_free_ char *root = NULL, *cgroup = NULL, *cc = NULL;
+ char *p;
struct stat st;
if (pid < 0)