[systemd-devel] [PATCH 5/5] manager: print p and then free it
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Fri Mar 1 13:46:11 PST 2013
On Fri, Mar 01, 2013 at 06:30:01PM +0100, Lukas Nykryn wrote:
> ---
> src/core/manager.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/core/manager.c b/src/core/manager.c
> index ec12a75..5d1959e 100644
> --- a/src/core/manager.c
> +++ b/src/core/manager.c
> @@ -2473,9 +2473,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;
> }
> }
Applied.
Zbyszek
More information about the systemd-devel
mailing list