From 03d554f34f343b9beb452f920082cf190f4e62f1 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 28 Feb 2024 08:30:02 -0800 Subject: [PATCH] Fix small memory problem --- src/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util.c b/src/util.c index add739a..dd4f2a1 100644 --- a/src/util.c +++ b/src/util.c @@ -17,6 +17,10 @@ Options GLOBAL_OPTS; void cleanup_options(Options *opts) { FREE_CHECKED(opts->config_path); FREE_CHECKED(opts->gpio_path); + FREE_CHECKED(opts->temp_key); + FREE_CHECKED(opts->humid_key); + FREE_CHECKED(opts->fail_key); + FREE_CHECKED(opts->lcd_version); } void *malloc_checked(size_t n) {