From cd6485f2edbecb3d9a106cbd26b15b4e6eea1be4 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 12 Nov 2023 05:59:47 +1100 Subject: [PATCH] [host] downsample: fix resource leak on failure --- host/src/downsample_parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/src/downsample_parser.c b/host/src/downsample_parser.c index f649bcbe..a02244a5 100644 --- a/host/src/downsample_parser.c +++ b/host/src/downsample_parser.c @@ -62,6 +62,7 @@ bool downsampleParser(struct Option * opt, const char * str) &rule.targetY) != 4) { DEBUG_INFO("Unable to parse downsample rules"); + free(tmp); return false; }