From b5f83499f30a5803f976cc514c51da991383f7f6 Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 23 Oct 2022 19:52:56 +0200 Subject: [PATCH] exile_append_syscall_policy(): Add missing free() --- exile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/exile.c b/exile.c index 1f31804..a61fb07 100644 --- a/exile.c +++ b/exile.c @@ -382,6 +382,7 @@ int exile_append_syscall_policy(struct exile_policy *exile_policy, long syscall, { EXILE_LOG_ERROR("Too many argfilters supplied\n"); exile_policy->exile_flags |= EXILE_FLAG_ADD_SYSCALL_POLICY_FAIL; + free(newpolicy); return -1; } for(size_t i = 0; i < n; i++)