From: Zbigniew Jędrzejewski-Szmek Date: Wed, 7 Apr 2021 14:18:53 +0000 (+0200) Subject: core: fix memleak of ipc_namespace_path X-Git-Tag: v249-rc1~462 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71d1e58309bb70bb2a014f33c5f9503dcbed020c;p=thirdparty%2Fsystemd.git core: fix memleak of ipc_namespace_path Fixup for a70581ffb5c13c91c76ff73ba6f5f3ff59c5a915. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32991 --- diff --git a/src/core/execute.c b/src/core/execute.c index 2152fa85000..4d6b75e8458 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -4916,6 +4916,7 @@ void exec_context_done(ExecContext *c) { c->stdin_data_size = 0; c->network_namespace_path = mfree(c->network_namespace_path); + c->ipc_namespace_path = mfree(c->ipc_namespace_path); c->log_namespace = mfree(c->log_namespace); diff --git a/test/fuzz/fuzz-unit-file/oss-fuzz-32991 b/test/fuzz/fuzz-unit-file/oss-fuzz-32991 new file mode 100644 index 00000000000..6305b2aa22e Binary files /dev/null and b/test/fuzz/fuzz-unit-file/oss-fuzz-32991 differ