projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4534824
)
manager: print p and then free it
author
Lukas Nykryn
<lnykryn@redhat.com>
Fri, 1 Mar 2013 17:30:01 +0000
(18:30 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 1 Mar 2013 21:43:57 +0000
(16:43 -0500)
src/core/manager.c
patch
|
blob
|
history
diff --git
a/src/core/manager.c
b/src/core/manager.c
index
4242398
..
d976581
100644
(file)
--- a/
src/core/manager.c
+++ b/
src/core/manager.c
@@
-2479,9
+2479,9
@@
static int create_generator_dir(Manager *m, char **generator, const char *name)
return log_oom();
if (!mkdtemp(p)) {
- free(p);
log_error("Failed to create generator directory %s: %m",
p);
+ free(p);
return -errno;
}
}