chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fd1b19
)
sd-login.c: fixup for d70964d0
author
Harald Hoyer
<harald@redhat.com>
Thu, 18 Apr 2013 08:16:17 +0000
(10:16 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Thu, 18 Apr 2013 08:16:17 +0000
(10:16 +0200)
p pointer is not _cleanup_free_
src/login/sd-login.c
patch
|
blob
|
history
diff --git
a/src/login/sd-login.c
b/src/login/sd-login.c
index 45523921b5dcf03fb8904f0d77abd0c63a58e93c..30e07a93223b69c415375cebc6b7deb2a2d03ed6 100644
(file)
--- 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)