From 1a2443db18af6c08b75e654eb765e9336ba31023 Mon Sep 17 00:00:00 2001 From: Albert S Date: Tue, 9 Nov 2021 10:02:56 +0100 Subject: [PATCH] qssb_append_syscalls_policy(): Fix mem leak on failure --- qssb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/qssb.h b/qssb.h index 7a9b03d..9fdb241 100644 --- a/qssb.h +++ b/qssb.h @@ -796,6 +796,7 @@ int qssb_append_syscalls_policy(struct qssb_policy *qssb_policy, unsigned int sy int ret = qssb_append_syscall(&newpolicy->syscall, syscalls, n); if(ret != 0) { + free(newpolicy); QSSB_LOG_ERROR("Failed to append syscall\n"); return -1; }