From 71d1e58309bb70bb2a014f33c5f9503dcbed020c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 7 Apr 2021 16:18:53 +0200 Subject: [PATCH] core: fix memleak of ipc_namespace_path Fixup for a70581ffb5c13c91c76ff73ba6f5f3ff59c5a915. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32991 --- src/core/execute.c | 1 + test/fuzz/fuzz-unit-file/oss-fuzz-32991 | Bin 0 -> 35 bytes 2 files changed, 1 insertion(+) create mode 100644 test/fuzz/fuzz-unit-file/oss-fuzz-32991 diff --git a/src/core/execute.c b/src/core/execute.c index 2152fa8500..4d6b75e845 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 0000000000000000000000000000000000000000..6305b2aa22ed6c5f9ca3be5018b0da69cc66dc56 GIT binary patch literal 35 mcmXTUPtHy)VTcX})3IEh0nUDjxv9kkiOHz}i6t4fs>uN3H4Jb7 literal 0 HcmV?d00001