From: Luca Boccassi Date: Thu, 15 Jun 2023 18:20:05 +0000 (+0100) Subject: core: fix post-fork memory leak X-Git-Tag: v254-rc1~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c94237468f8efbb6ae705963a31b379c5924471e;p=thirdparty%2Fsystemd.git core: fix post-fork memory leak Doesn't matter really, but it is caught by ASAN when things fail and there's no execve, so fix it. https://jenkins-systemd.apps.ocp.cloud.ci.centos.org/job/upstream-vagrant-archlinux-sanitizers/3245/console --- diff --git a/src/core/namespace.c b/src/core/namespace.c index b00f27e08fb..fbcc4505b5a 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -536,7 +536,7 @@ static int append_extensions( *((*p)++) = (MountEntry) { .path_malloc = TAKE_PTR(mount_point), - .source_const = TAKE_PTR(source), + .source_malloc = TAKE_PTR(source), .mode = EXTENSION_DIRECTORIES, .ignore = ignore_enoent, .has_prefix = true,