summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-03-01 18:30:01 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-01 16:43:57 -0500
commit34bf02818d06343982a06a1c33d165190e918d0d (patch)
treedf4d07affe2689ed616cc38974f761e6fd1bf583 /src
parent45348240358d29c43f8d943b6c8f07dec5fbdb56 (diff)
manager: print p and then free it
Diffstat (limited to 'src')
-rw-r--r--src/core/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 42423985bc..d976581c96 100644
--- 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;
}
}