From: Lukas Nykryn Date: Fri, 1 Mar 2013 17:30:01 +0000 (+0100) Subject: manager: print p and then free it X-Git-Tag: upstream/198~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34bf02818d06343982a06a1c33d165190e918d0d;p=platform%2Fupstream%2Fsystemd.git manager: print p and then free it --- diff --git a/src/core/manager.c b/src/core/manager.c index 4242398..d976581 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; } }